I've added a little extra code to play different tunes depending on the current state. I've "invented" two functions: playTune(N) andIt uses the library at stopTune() to either play tune #N, or stop playing any tune. You will have to write this code!!http://www.rhydolabz.com/other-widgets-c-205_124/mini-mp3-player-module-p-2159.html
static unsigned lastMilli = 0;
static byte lastLED = 0;
static const byte LEDs[] = { led1, led2, led3 };
distance1 = // Whatever you call to get the distance...
if (distance1>7) && (distance1<=20)) { // Too close?
if (lastMilli==0) { // Is this new???
lastMilli = millis(); // Yes! Record that...
mysero.write(150); // ...and set servo.
} // if
unsigned delay = millis() - lastMilli; // Get how long it's been
byte which = delay / 10000 % 3; // Which LED / tune?
byte LED = LEDs[which]; // Which LED?
if (LED != lastLED) { // Has LED changed?
if (lastLED!=0) {
digitalWrite(lastLED, LOW); // Yes! Stop that one
} // if
playTunemp3_single_loop(whichtrue); // Play forever!
mp3_single_play(which+1); // Play new tune"mp3/000#.mp3"
lastLED = LED;
digitalWrite(LED, HIGH); // And start the new one
} // if
} // if
else if (lastMillis!=0) { // They're gone!
digitalWrite(lastLED, LOW); // No LED
myservo.write(0); // No servo
lastMilli = 0; // So start again
lastLED = 0;
stopTunemp3_stop();
} // else