Serial.println("delayed trigger with");// print some info about the delayed trigger
Serial.print("");
Serial.print(analogRead(A2));
Serial.print("");
Serial.print("milliseconds");
Serial.println("");
Serial.println("");
triggered=true;
}
elseif(!input3&&triggered){//if there is no reading on input3 and condition triggered is true (aka sound is playing), set triggered to false, aka stop playing
// STOP WHEN NO TRIGGER IS PRESENT (or do something else ;)