chefslot:
Intentions would be for both to write low, which they do, i have checked
Not with this code it won't:
if (t > 25 || h > 70) {
digitalWrite(Relay1, LOW);
}
else if (t < 25 || h < 70) {
digitalWrite(Relay1, HIGH);
}
If t equals 25 and h equals 70, then neither branch will be taken. The relay output will remain unchanged from its present value.
chefslot:
Yes good point, could that not be introduced as a delay (5000)?
Poor coding technique at best.