# Reed Switch

![](https://451694785-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPda5vaSVRKTQ6AoAmb%2Fuploads%2Fgit-blob-b278f229aeab5dff1eb851fe91a01a51a7c87c7d%2Fimage.png?alt=media)

This reed switch offers an analog as well as a digital interface. The ‘G’ pen is connected to GND, the ‘+’ pen to 5V DC, the ‘AO’ pen offers the analog output while the ‘DO’ offers the digital output. A potentiometer is used as a pull up resistor.
