thermostat, device to detect temperature changes for the purpose of maintaining the temperature of an enclosed area essentially constant. In a system including relays, valves, switches, etc., the thermostat generates signals, usually electrical, when the temperature exceeds or falls below the desired value. It usually is used to control the flow of fuel to a burner, of electric current to a heating or cooling unit, or of a heated or cooled gas or liquid into the area it serves. The thermostat is also an element in some types of fire-detection warning systems.