I agree with @guxdude… I always recommend a little space in between where neither
condition is true.
For example, notice the approx 1° gap (65.9° - 67.1°):
IF Sensor 6's temperature drops below 66
Then do stuff with Keypad1
IF Sensor 6's temperature rises above 67
Then do stuff with Keypad2
If you skip that minimal 1 degree of separation, you may find the temperature kind of “riding on the fence” between two degrees. When this happens, you may find your fan turning on and off too frequently. Increasing the separation furthur will make the fan cycle slower, but I would never recommend setting the two
conditions bumper to bumper. (potentially way too fast)
Perhaps an exception to this would be if I was simply logging data.
I might allow for a bit more spam if no devices were being controlled.
On a totally different topic, you may want to change line 31 to point to the correct Keypad…