Waterproofing of electric boards and switches