#define BUZZER_PIN 21 // Set GPIO pin for buzzer
void setup() {
// Initialize the buzzer pin as an output
pinMode(BUZZER_PIN, OUTPUT);
}
void loop() {
// Turn the buzzer on
digitalWrite(BUZZER_PIN, HIGH);
delay(1000); // Wait for 1 second
// Turn the buzzer off
digitalWrite(BUZZER_PIN, LOW);
delay(1000); // Wait for 1 second
}