The electromechanical hygrostat is designed to control enclosure heaters so that the dew point is raised when a critical relative humidity of 65% is exceeded. In this way condensation and corrosion in enclosures with electric/electronic components is effectively prevented.