Should be easy enough to find out with some serial prints which of these variables is causing it:
digitalWrite(RLY_FAN, fan_mode == 1 || is_cooling == 1 || jx_Fan == 1 ? LOW : HIGH);
Should be easy enough to find out with some serial prints which of these variables is causing it:
digitalWrite(RLY_FAN, fan_mode == 1 || is_cooling == 1 || jx_Fan == 1 ? LOW : HIGH);