if(digitalRead(2) == LOW) {digitalWrite(3, HIGH);}
// read the pushbutton input pin: buttonState = digitalRead(buttonPin); // compare the buttonState to its previous state if (buttonState != lastButtonState) { // if the state has changed, increment the counter if (buttonState == HIGH) { // if the current state is HIGH then the button // wend from off to on: buttonPushCounter++;
Oui mais il veut que sa led soit allumer si PIR au repos donc sortie a 0v.Sortie -> résistance 330ohm->(-) led (+)->+5v uno
Sortie -> résistance 330ohm->(-) led (+)->+5v uno