A thermostat is a component which senses the temperature of a system, so that the system temperature is maintained near a desired set point.
A thermostat can often be a main control unit for heating and cooling system.