The Hall effect sensor module is used to detect the proximity of magnets. It's much smaller. When the magnetic field exceeds the threshold, the open collector output transistor turns on, the logic compatible output goes low, and the onboard LED indicator lights up.
high speed (turn-on threshold 35450 gauss, minimum hysteresis 20 gauss, operating voltage range 4.5-24 volts. This module uses the Allegro MicroSystems A3144EUA sensor. 3-pin interface, signal, V +, and GND. I have.
To use this sensor / switch, place a 10K pull-up resistor between the "S" pin and the center pin (+) and connect the "" pin to ground. It supplies voltage to the middle pin. As you move the magnet closer, the "S" pin goes low (pulled to ground) and the onboard LED indicator lights up.