How do thermostats work?
Thermostat
Early technologies included mercury thermometers with electrodes inserted directly through the glass, so that when a certain (fixed) temperature was reached the contacts would be closed by the mercury. These were accurate to within a degree of temperature.