thermostat
A device that senses the surrounding temperature and cycles the cooling and heating by opening and closing a set of electrical contacts.