Opposite is a simple temperature sensor. It operates in exactly the same
way as a light/dark sensor except that it has a component called a thermistor rather than a LDR (Light Dependent Resistor). The thermistor's
resistance value changes when the temperature rises or falls. This
‘triggers’ the relay.

The preset resistor allows the person using the
circuit to alter its sensitivity to changes in temperature..