Thermostat shuts off heating element