I made a door alarm using magnets and a micro bit. Controlling magnet wave reception was hard, but here is how it works. The door alarm sits between a door and a magnet, and when they get closer together (the door opens), an alarm sounds until the door is closed. This is done using magnetic wave frequency and radio waves.