int buzzerPin = 9; // Pin where the buzzer is connected
void setup() {
// No setup required for the buzzer
}
void loop() {
// Play the parking beep sound
for (int i = 0; i < 10; i++) { // Repeat the beep 5 times
tone(buzzerPin, 1000); // Higher frequency beep (1000 Hz)
delay(200); // Play for 200 ms
noTone(buzzerPin); // Stop the sound
delay(200); // Pause between beeps
}
// Longer pause before repeating the parking tone
delay(2000); // 2-second pause before the next cycle
}