The KY-003 Hall Magnetic Sensor module is an on/off switch that senses the presence of a magnetic field.
compatible with widely used microcontrollers, including ESP32, Raspberry Pi, and Arduino.
This module has a digital output, resembles the analog hall magnetic sensor KY-035 in appearance, and functions similarly to the digital/analog magnetic sensor KY-024.