Hello, I am trying to write a program to play an MP3 file and a lamp to turn on at the same time. I’m using a DFPlayer Mini for the MP3 player, but I want to add an Ultrasonic Sensor to turn it on or off with a boolean. I have the sensor working but for the DFPlayer, I need to have a delay to play the song, so when I put my hand in front of the sensor, nothing happens. Does anyone know any way to perform an action while a delay is in action?
Thanks in advance.