#define BUZZER_PIN 9 // Connect the red wire of the buzzer to D9, black wire to GND
void setup() {
Serial.begin(9600);
Serial.println("Passive Buzzer Test Initialized");
}
void loop() {
// Play a tone at 1000 Hz for 500 ms
tone(BUZZER_PIN, 1000, 500); // 1000 Hz = 1 kHz
Serial.println("Tone ON");
delay(1000); // Wait for 1 second before the next tone
}