
Tell whether your door is open or closed just by looking at a light. You attach a small magnet to the door and a magnet-sensing switch to the frame; when the door is closed they sit side by side and the green LED is on, and when it opens and the magnet moves away, the red LED lights up. That's the whole secret behind the door sensors in home alarms.
Source Code
This project also comes with blocks. Like the code, they unlock with Premium. What is block coding?
Premium Content
The source code, block version and FAQ of this project are open to Premium members.
- All Project Code
- Block version
- Frequently Asked Questions
