My sensor keeps reading high, even when motion is not detected. Even when i untriggered and retriggered it, same thing
@afrisalaja2505 Жыл бұрын
I have the same problem as you and am still looking for a solution
@edwardmaes3297 Жыл бұрын
I also have the same problem
@klincgleda72689 ай бұрын
my motion doesnt even sense a thing, lol
@Escarade8 ай бұрын
Same ;/
@TheJoeFletch4 ай бұрын
I have watched and read a few things saying that you need to debounce the PIR signal.
@DJW-q1p Жыл бұрын
nice video!
@RandomUser7754122 күн бұрын
Anybody got the code?
@P0l15h-C0w21 күн бұрын
gotcha bud // activate LED with PIR sensor const int led = 8; // LED pin const int pir = 2; // PIR pin int motion; // variable for sensor reading void setup(){ // setup code that only runs once pinMode(led, OUTPUT); // set LED pin as output pinMode(pir, INPUT); // set PIR pin as input } void loop(){ // code that loops forever motion = digitalRead(pir); // read sensor pin if(motion){ // if motion detected digitalWrite(led,HIGH); // turn LED on } else{ // else, no motion detected digitalWrite(led,LOW); // turn LED off } }