A thermostat is a device which automatically maintains temperature at a constant value or gives notice of an undue change in temperature.