if something || (or) something not working , also need a timer &&??

gfvalvo:
Also, since this looks to me like some kind environmental control, you should think about introducing some hysteresis to prevent cycling too rapidly.

Yes good point, could that not be introduced as a delay (5000)?