Commonly used together with a magnet as a proximity sensor, this module detects the presence of a nearby magnetic field. Note that the output of the module is binary and does not indicate strength of the magnetic field.
*This module is part of the KY series of sensors which means that the prints on the board might be mislabelled, do read our notes in the description to understand how to wire it properly. For more information about the problems with the KY series, click here!
Operating Voltage: 3.3V to 5V
Note: Pin 1 should be connected to Ground, Pin 2 should be connected to 5V and Pin 3 is the data output pin.
Hookup Guide: https://arduinomodules.info/ky-021-mini-magnetic-reed-switch-module/