
Beginner4/7/2026- Author: IoTSpark Maker
ESP32 + Hall Effect KY-003: Magnetic Field Detection (Quick Test Sample Code)
The KY-003 Hall Effect sensor uses a Hall chip (typically an A3144 or equivalent) to detect a magnetic field — when a magnet gets close enough, the Hall chip changes its output state.
ky-003hall-effecttu-truong
4 steps3 components
The KY-003 Hall Effect sensor uses a Hall chip (typically an A3144 or equivalent) to detect a magnetic field — when a magnet gets close enough, the Hall chip changes its output state. It's a very durable contactless sensor, with no wear over time like a mechanical switch — common applications: counting wheel rotations, detecting a door opening/closing (mounting a magnet on the door), and motor speed sensing.