what's the best way to detect the magnet? Use anther magnet. But it's not sensitive enough. You have to feel it by youself. This Hall sensor knows whether there is a magnetic object nearby or not. And it correctly tells you through ditigal output.
Note: It's a omnipolar magnet dectector so that it can not tell two polarities apart.
SPECIFICATION
- Supply Voltage: 3.3V to 5V
- Indicator LED on board
- Interface: Digital
- Size:22x30mm (0.87x1.18")
Pinout
- GND
- VCC
- Signal
SHIPPING LIST
- Hall Sensor X1
- cable X1
Product Wiki
DFRobot, Room 602, 603, No. 2 Boyun Road, Zhangjiang Hi-Tech Park, China (Shanghai) Pilot Free Trade Zone, 201210 shanghai, China, https://eckstein-shop.de/DFRobot-Marken