KY-021 Reed Sensor Mini Magnetic Module
The KY-021 Reed Sensor gives your electronics project a simple magnetic switching input. A nearby magnet changes the reed contact state, allowing a connected controller to detect its presence.
Use the module when your project needs to respond to a magnet moving into or away from a sensing point. It suits classroom experiments and compact prototypes.
Magnetic Contact Switching
The reed switch contains contacts that close in response to a suitable magnetic field. Detection distance depends on the magnet’s strength, alignment and mounting position.
Test your chosen magnet before fixing the module in place. The sensor detects a switching condition; it does not measure magnetic field strength or provide an exact distance reading.
3-Pin Microcontroller Connection
The module uses three connections: signal, supply and ground. The documented design supports 3.3–5V operation, allowing integration with compatible development boards.
Check the pin markings before wiring. Use a supply and signal arrangement that matches your controller’s input-voltage limits.
Arduino and Smart Car Experiments
For an Arduino project, your program can read the sensor and activate an indicator when a magnet is detected. In a smart car demonstration, a suitably placed magnet can act as a position marker.
You can also explore event counting by moving a magnet past the sensor. Add software debouncing to reduce repeated counts caused by mechanical contact bounce.
Mounting and Project Assembly
Mount the module securely and protect its glass reed element from impact. Leave enough space for the magnet to pass without striking the sensor.
For consistent results, keep the magnet’s path and orientation repeatable. Use a separate driver circuit when your project needs to operate a motor, relay or other higher-current device.
Product Specifications
| Specification | Details |
|---|---|
| Model | KY-021 |
| Product type | Mini magnetic reed sensor module |
| Interface | 3-pin |
| Connections | Signal, supply and ground |
| Documented operating voltage | 3.3–5V |
| Sensing principle | Magnetically operated reed contact |
| Output function | Switching state |
| Detection distance | Depends on magnet and alignment |
| Controller requirement | Compatible digital input |
| Magnet inclusion | Only if specified in the package |
| Typical applications | Arduino experiments, position detection and smart car demonstrations |
Buy KY-021 Reed Sensor in Pakistan
Shop the KY-021 Reed Sensor at Mekatroniks for Arduino and student electronics projects in Pakistan. Pair it with a suitable magnet, jumper wires and a compatible development board to build your magnetic detection project.







There are no reviews yet.