//student name : Osamah Shabab Ahmed
//student ID : 439011236
const int pirPin = 13; //sefine the pin connected to the sensor
const int buzzerPin = 10; //define the pin connected to the buzzer
void setup() {
pinMode(pirPin, INPUT);
pinMode(buzzerPin, OUTPUT);
}
void loop() {
int motion = digitalRead(pirPin);
if (motion == HIGH) {
digitalWrite(buzzerPin, HIGH);
delay(100);
digitalWrite(buzzerPin, LOW);
}
delay(100);
}