Help with IF and Else

bsohn:
right now you are ignoring a whole degree in there where nothing will happen between 20 and 21

I assumed the two if() statements were to give some Hysteresis in the ON/OFF control otherwise you could get the LED flickering on/off around the 21degree temperature set point