The answer to 'how does thermostat work' is that a thermostat is a device that controls the temperature in a home or building by turning the heating or cooling system on and off as needed. It does this by measuring the current temperature and comparing it to the desired temperature set by the user. When the temperature drops below the set point, the thermostat triggers the heating system to turn on and warm the space. When the temperature reaches the set point, the thermostat turns the heating system off.
Thermostats can be manual, programmable, or smart. Manual thermostats require the user to physically adjust the temperature setting. Programmable thermostats allow the user to set a schedule for the temperature to automatically adjust at different times of the day. Smart thermostats can learn the user's preferences and habits, and automatically adjust the temperature accordingly to optimize energy efficiency.