Thermal hysteresis and comparing current to previous temp

I would change the name of the value to PWM because it isn't analog.