int pirPin = 3; //the digital pin connected to the PIR sensor's output
int ledPin = 13;
/////////////////////////////
//SETUP
void setup(){
Serial.begin(9600);
pinMode(ledPin, OUTPUT); // Set the LED pin as an output
pinMode(pirPin, INPUT); // Set the PIR sensor pin as an input
}
void loop(){
if (digitalRead(pirPin) == HIGH) { // If motion is detected by the PIR sensor
digitalWrite(ledPin, HIGH); // Turn on the LED
delay(60000); // Wait for 10 seconds
digitalWrite(ledPin, LOW); // Turn off the LED
}
}