#define buzzerPin 8
void setup() {
// put your setup code here, to run once:
pinMode(buzzerPin, OUTPUT);
Serial.begin(9600);
Serial.print("Buzzer nyala");
}
void loop() {
// put your main code here, to run repeatedly:
tone(buzzerPin, 440);
delay(1000);
noTone(buzzerPin);
delay(1000);
}