I know the title sucks…
Basically I need a condition to stick if it met, and not change back.
So for instance
if (digitalRead(front) == HIGH) {
alarmFunction(); //call alarm function
}
as soon as the state chances back to LOW on the pin, is stops calling the function…
I’ve searched everywhere and I’m at a loos on this one…
thanks