If statement not tripping, trying to control beer temp.

26 diff 76.82 degrees F 598 time 0 state 0 on/off
25 diff 75.95 degrees F 599 time 0 state 0 on/off
25 diff 75.95 degrees F 600 time 1 state 0 on/off
25 diff 75.07 degrees F 601 time 1 state 0 on/off
25 diff 75.07 degrees F 602 time 1 state 0 on/off

so confuzled. should have turned the compressorRelay on just before assigning state to 1.

@cyclegadget: I had a SSR hooked up to a lightbulb. Didn't want to burn out my compressor while I am trouble shooting this.