The coils of electrical machines that are exposed to massive temperature fluctuations or extreme climatic conditions can be affected by condensate formation or bedewing. When the machine is turned off the built-in anti-condensation heater warms the coil by several Kelvin compared to the outside temperature. This prevents the condensation of humidity, which prevents potential corrosion damage inside the machine.