In the picture the wires are not connected normally but when the other white component which is a magnetic comes near 0 5 inch away the reed switch closes.
Raspberrypi garage door and sensor.
The relay should be wired in the normally open position so that when activated the circuit will close and the garage door will open close.
All activity is monitored and logged using the raspberry pi.
Then wire the relay to the garage door opener.
This sensor essentially is a reed switch.
4 5 out of 5 stars 125.
Wire pin 2 5v on the pi to the vcc pin on the relay.
Gikfun mc 38 wired door sensor magnetic switch for arduino ek1656.
Get it as soon as thu jul 9.
4 4 out of 5 stars 26.
Build a raspberry pi door window sensor with reed relais.
The important piece of hardware which detect the physical world the garage door into electron signals for the raspberry pi.
Amazon s choice for raspberry pi door sensor.
A magnetic field will cause the reeds to come together thus completing an electrical circuit.
With a magnet attached to the garage door the pi relies on two magnetic reed switches to check the garage door s status.
A check with infrared light barriers or other methods would certainly be possible but in this case that is much more complicated.