Understanding Thermostats: How They Regulate Temperature
That sounds like a thermostat.
A thermostat is a device that automatically regulates the temperature of a system, like a room, furnace, or refrigerator, by turning heating or cooling systems on and off as needed.
Is there anything else you'd like to know about thermostats?