Hi all,
I have a small issue with my relays switching on and off every second or so, once it hits the temperature.
my code controls a arduino uno and using 3 onewire sensors
it controls 1 relay and Red/Blue LED lighting effect for each sensor
i have pulled code and added all kinds and to a experienced coder, you will laugh at it.. but it is working so i am happy...
i would essentially like to setup a somehow instead of having 1 temperature setting, have an upper and lower, instead of being only 30 degrees,
how can i have 30 on and 25 off
this will prevent relay hammer
here is the code i need help with...
if (temperature >30) {
digitalWrite(4,HIGH);
} else {
digitalWrite(4,LOW);
}
if (temperature2 >30) {
digitalWrite(8,HIGH);
} else {
digitalWrite(8,LOW);
}
if (temperature3 >30) {
digitalWrite(13,HIGH);
} else {
digitalWrite(13,LOW);