const int buzzerPin = D2; // Pin D2 connects to the buzzer void setup() { pinMode(buzzerPin, OUTPUT); } void loop() { // High "Deee" sound (Normal buzzer resonant frequency) tone(buzzerPin, 2300); delay(300); // Lower "Dooo" sound (Siren drop pitch) tone(buzzerPin, 1800); delay(300); }