In the figure we have a circuit in which a sensor is fired with a resistive sensor. The sensor can be an NTC, LDR, PTC or other. R1 must have the same order of value as the sensor resistance in the condition close to the trip. The supply voltage must be according to the relay. Other operational amplifiers can be used.