Hello all im doing a level sensor using 2 float switch´s.
if (boia03status == HIGH && boia04status == LOW) {
GLCD.CursorTo(0, 5);
GLCD.print("Rep: **");
delay(100);
}
else if (boia03status == HIGH && boia04status == HIGH) {
GLCD.CursorTo(0, 5);
GLCD.print("Rep: *");
delay(100);
}
else if (boia03status == LOW && boia04status == LOW) {
GLCD.CursorTo(0, 5);
GLCD.print("Rep: ***");
delay(100);
}
else {
GLCD.CursorTo(0, 5);
GLCD.print("Rep:");
delay(100);
}
im using this code and when both switches are high it displays "Rep: *" when i put boia04 switch on LOW it displays "Rep: **" and both LOW "Rep: ***" but when i put one or both switch to LOW it doesn t go anywhere it always displays "Rep: ***" only if i reset arduino it displays what i want.
I have try to add delay just to see if it works but no.
Does anyone know why?
Regards