A thermostat is a regulating device component that senses the temperature of a physical system and performs actions so that the system's temperature is maintained near a desired setpoint. Thermostats are used in any device or system that heats or cools to a setpoint temperature, examples include building heating, central heating, and air conditioners.