| http://www.w3.org/ns/prov#value | - Quoteyes I know but I can not figure out how to let it go to high but not back to low.Stand in front of it and keep dancing.You can not make the sensor stay HIGH. What you can do is detect when it goes HIGH, rather than whether it IS HIGH or LOW.Code: [Select]int prevState = LOW;int currState;bool screaming = false;void loop(){ currState = digitalRead(pirPin); if(currState != prevState) { // Something
|