Adding a action between two times, but relying on other variables.

kenwood120s:
Took 3 1/2 hours to get the whole story :wink:

No idea how the compiler will interpret this "&& now.hour 12:00:00-13:00:00".

It didn't like it,,, and sorry about that i do try to be a good noob but tooth ache has given my mind missed code,,, i have still ctrl t'd everything and put my code in code []'s thou ^^

kenwood120s:
I'd nest the temp and humidity if inside the time if like this, and treat the time to the same style of if as you have for the temp and humidity:

if (now.hour > 12 && now.hour  <15) //or whatever the times need to be

{
   if (t > 32 || h > 70)
     {
         //do relay stuff....

Thank you will try this out.