This is a Door Alarm System Project made using aurdino And reed Switch with the help of IOT.
Below are the schematics provided for the code above.
- Arduino uno
- Magnetic Contact Switch - Door Sensor
- Buzzer
- Breadboard and some cable
- Since the switch is non polar, you can plug in the wires any way.
- Connect one wire of the switch to a jumper wire and plug the jumper wire pin to pin GND on the POWER side of the Arduino
- Connect the other switch wire to another jumper wire, and plug that jumper wire into pin 4 of the Arduino.