19 Seal Small Gaps Use expanding foam and caulk to seal the openings around plumbing vent pipes and electrical wires. Be sure to wear gloves and be careful not to get expanding foam on your clothes, as the foam is very sticky and nearly impossible to remove once it sets. When the foam or caulk is dry, cover the area again with insulation.