Arduino UNO R4 displays the open or closed state of a door. A reed switch in the door detects the state, which needs to be indicated using LEDs. A red LED indicates the door is open, while a green LED indicates the door is closed. The LEDs must be connected through relays. The same reed switch should also turn on the lighting in front of the door. The lighting operates on 230V power. I only need the code and a wiring diagram for connecting the inputs to the Arduino board. Interested individuals are welcome to contact me regarding the project.
Success story sharing