"DescriptionThe sensor can detect magnetic fields through the Hall effect, and it outputs a corresponding digital voltage signal.
The sensor can thus be used as a magnetic switch.
Technical featuresOperating voltage: 5 VConnection: 3 pinDimensions: 25 x 12 mmConnectionsS: Digital voltage signal+: Voltage supply-: Earth NoteA sample connection and code can be found in the data sheet provided"