#define BUZZER_PIN 14 // Define the pin for the buzzer void setup() { pinMode(BUZZER_PIN, OUTPUT); // Set the buzzer pin as an output } void loop() { // Turn on the buzzer for 500 milliseconds (0.5 seconds) digitalWrite(BUZZER_PIN, HIGH); delay(500); // Turn off the buzzer for 500 milliseconds (0.5 seconds) digitalWrite(BUZZER_PIN, LOW); delay(500); }