Based on these calculations performed in the PIC
microcontroller code the temperature alarm is set off after the
output voltage of the temperature sensor reaching appropriate
threshold voltage. Voltage comparator (LM 393) is used
whose output is connected to microcontroller. The Vin – of
voltage comparator is connected to 1.25V and Vin+ is
connected with temperature sensor schematic.