Thermostats are devices used to control the temperature of a room or building. They work by sensing the air temperature and then adjusting the amount of heat or air conditioning that is delivered to the space. Thermostats can be manual or automatic, and they come in a variety of shapes and sizes.