Took 3 1/2 hours to get the whole story ![]()
No idea how the compiler will interpret this "&& now.hour 12:00:00-13:00:00".
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....
edit: changed || to && in code above