//PUSH BUTTON
int buzzer = 13;
int sensor=2;
int pirStatus = LOW;
void setup() {
// put your setup code here, to run once:
pinMode(buzzer, OUTPUT);
pinMode(sensor, INPUT);
}
void loop() {
pirStatus = digitalRead(sensor) ;
if (pirStatus==HIGH){
tone(buzzer, 1000);
}
else{
noTone(buzzer);
}
}