This project needs a LEGO WeDo. Connect the distance sensor to the WeDo and watch the Fireworks fly when something gets close.
Thanks to illusionist for the original project, and to JeremiahMacDonald for the sounds. We'll be using this as a grand finale for the Scratch-WeDo Chain reaction at the Scratch Conference.