expanding foam in a can will eventually absorb water, and make a huge mess. If the electronics are shot, why would it matter if they get wet? I would use as is.