What is the principle of thermostat?

The principle of a thermostat is to regulate heat or cold air. Thermostats can be used for rooms, people, or cooking.