A magnet and reed switch can be turned into a temperature sensor by using a magnet that has a certain curie temperature for the temperature you want to sense. When that curie temperature is reached the magnet loses its magnetic properties whereby the reed switch contacts open. When the temperature drops below the curie temperature, the reed contacts will close.