Scary Microbit Light Sensor

Want to spook your friends? Well you have come to the right place. Today I will show you how to make a light sensing, noise making, spooky trick to do with your microbit!
What You Need
-Speaker
-microbit
-alligator wires
-power supply
-and the microbit coding website!
Step 1


First, you need to plug in the wires like this.
Closer Up

Here is a picture close up of the headphone jack.
Now for the Code


I used the night light code and modified it. In the modified picture you may need to change the light setting.
BONUS!

Now you are done. But are you though? If you have a carved pumpkin you can put it inside if it and make it even more spooky! Again, you may need to mess with the code, especially if you use a pumpkin.
Done!

Great! You are all done! Have fun spooking your friends!
Also, this is going to be entered in the Halloween contest. Please vote! It helps!