In an automatic electric iron, a thermostat is used to :