// Define the pin for the buzzer
const int buzzerPin = 13; // the pin number of the buzzer
void setup() {
// Initialize the buzzer pin as an output
pinMode(buzzerPin, OUTPUT);
}
void loop() {
// Activate the buzzer (produce sound)
tone(buzzerPin, 1000); // You can adjust the frequency as needed
delay(500); // Sound duration
// Deactivate the buzzer (no sound)
noTone(buzzerPin);
delay(500); // Delay between each alarm cycle
}