In this video I will show you how to create an intruder alarm with the micro:bit. In my example I have put it inside a biscuit/cookie tin and the alarm sounds when light shines on the micro:bit.
Completed code: https://makecode.microbit.org/_72ufEY...
This is part of my Beyond basics series of micro:bit tutorials, shortened and updated versions of those in my full lesson resources for teachers - available here: https://mrmorrison.co.uk/microbit/bey...