Hello,
I built a programmable thermostat for my radiators, it works well but i have a programmation problem: in one if statement I have multiple conditions but Arduino doesn't recognize one of it, in particulare my ifs are:
the thing that happens is that when temp is greater than temp_set (and vett[num_hh] == 1) arduino opens the relay, why doesn't it consider the "+0.50" gap?
Ok, I figured out which was the condition which messed up things, this:
|| (onoff == 0)
This was in conflict with the others so the program didn't know what to do when onoff==0 and vett[num_hh] == 1 && temp < temp_setf, now it seems it works fine...