Weatherproof electronics