Circuit diagram by William Xuan.
We want to make it detect the distance of the hand, if it’s too close or inside the candy bowl, the “ghost” will create some loud sound to frighten people away.
As long as the hand is close to the candy bowl, the sound will keep going on.
The SD card holder for mp3 music upload.
FX Sound Arduino board WAV/OGG
SoundPin: digital-LOW(flipped with LED); Output digitalPin