A limit switch is often a self resetting thermostatic switch that opens on temperature rise at a set temperature and closes when the temperature falls below a set temperature.