Temperature switches are the mechanisms used to measure temperature. The working of a temperature switch is based upon the temperature variations taking place in an enclosed space, or in an open area adjoining the temperature detecting component. In general, the functioning of a temperature switch and a pressure switch is almost same since both the devices get triggered by variations in pressure.
In many of the temperature switch designs, the temperature sensing element is positioned in such a way that the rise or drop in temperature results in the increase and decrease of internal pressure of liquid or gas such as in liquid filled temperature switches. This variation in pressure can then be used to actuate a switching mechanism.