kripacharya
Banned

the calculation of hysteresis resistors is based on the link below: (with Vhysteresis=0.005v then R1=1K&R2=2.2M)
https://www.electronics-tutorials.ws/opamp/op-amp-comparator.html
(sigh)
With your design, you will get a hysteresis of about 1.5mV. It is suggested to try and have hysteresis of about 10mV - i.e. from 372 to 382 mV
This will achieve your target temperature goals as well as provide better immunity to 'noise' conditions.
The main reason a 2.2M/1K gives only 1.5mV is due to following -- the opamp output voltage swing will be approx 0.1v to 3.5v, and not 0v to 5v
In fact, simulations show that optimum feedback resistor pair with your circuit configuration should be 330K/ 1K, which gives 10mV @ 5v supply.