I’m working on a project that involves a pressure sensor that responds to pressure with the playing of an audio file. Everything goes as planned when the Arduino is powered through my laptop usb, but once I power it through the DC it begins to loop the audio files on its own, without any pressure being applied. If I apply pressure when it is powered through the DC, it will still respond with the audio file, but it then continues to play through them on its own. I am very new to Arduino, so this is probably a simple correction that I’m unaware of. I’ve attached the code as well.
beaupreproj_mmedit1.ino (4.61 KB)