int chirpPin = 13; //Digital Pin D7 on NODE MCU board. Change this to the pin connected to void setup() { pinMode (chirpPin, OUTPUT); } void loop() { //fastChirp(); //Uncomment this if your sound clip is short //longChirp(); //Uncomment this if your sound clip is long } int fastChirp(){ //Quickly chirps 3 times, followed by a 2 second pause digitalWrite(chirpPin, HIGH); delay(500); digitalWrite(chirpPin, LOW); delay(100); digitalWrite(chirpPin, HIGH); delay(500); digitalWrite(chirpPin, LOW); delay(100); digitalWrite(chirpPin, HIGH); delay(500); digitalWrite(chirpPin, LOW); delay(4000); } int longChirp() { //plays the entire sound clip every 10 seconds digitalWrite(chirpPin, HIGH); delay (500); digitalWrite(chirpPin, LOW); delay (10000); }