KY-025 Reed Switch Module

KY-025 Reed Switch Module image

View on Amazon

Overview

The KY-025 is a reed switch module that provides both analog and digital outputs. It is equipped with a potentiometer to adjust sensitivity and is suitable for detecting magnetic fields in various applications.

About KY-025 Reed Switch Module

The KY-025 Reed Switch Module is a magnetic sensor that detects the presence of a magnetic field. It features both analog and digital outputs: the analog output provides a voltage corresponding to the magnetic field strength, while the digital output activates when the magnetic field exceeds a user-defined threshold, adjustable via an onboard potentiometer. This module is commonly used in applications such as proximity sensing, position detection, and security systems.

Where to Buy

Get Your KY-025

KY-025 Reed Switch Module

Starting from

$2 per unit

Amazon com
Amazon.com Ships worldwide
Amazon de
Amazon.de Ships to EU
Aliexpress
AliExpress Best value option

Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specs

KY-025 Specifications

Complete technical specification details for KY-025 Reed Switch Module

📊 Technical Parameters

Operating Voltage 3.3V to 5V
Dimensions 36 x 15 x 14 mm
Weight 2 g
Pin Configuration

KY-025 Pinout

The **KY-025** is a 4-pin reed switch module with dual outputs:

Visual Pinout Diagram

Pinout Diagram Primary
KY-025 Reed Switch Module pinout
4
Total Pins

Pin Types

Power
2
Communication
2

Quick Tips

🔌

**Interface**: Dual output (analog + digital with comparator),🧲 **Sensor**: Large reed switch (sealed glass tube with ferromagnetic contacts),📊 **Analog Output**: Continuous voltage level reading

🚨

**Digital Output**: Threshold-based trigger (adjustable via potentiometer),⚡ **Power**: 3.3V or 5V operation

📏

**Range**: Typically 10-30mm detection distance (depends on magnet strength),🎯 **Applications**: Door/window sensors, security systems, proximity detection, position sensing

Pin Descriptions

Pin NameTypeDescriptionNotes
1 GND
Power

Ground connection

2 +V
Power

Power supply

3.3V or 5V

3 D0
Communication

Digital output

HIGH when magnetic field detected

4 A0
Communication

Analog output

Voltage reading of reed switch state

Connection Guide

Wiring KY-025 to ESP32

To interface the **KY-025** with an **ESP32** for magnetic detection:

Visual Wiring Diagram

Wiring Diagram Recommended
KY-025 Reed Switch Module wiring with ESP32
4
Connections

Connection Status

Required
2
Optional
2

Protocol

Digital

Pin Connections

KY-025 PinConnectionESP32 PinDescription
1 GND Required
GND

Ground

2 +V Required
3.3V or 5V

Power supply

3 D0 Optional
GPIO17

Digital input (any GPIO)

4 A0 Optional
GPIO36

Analog input (ADC pin)

💡

**Digital Mode**: Use D0 for simple binary detection (magnet present/absent)

📊

**Analog Mode**: Use A0 for continuous monitoring with adjustable sensitivity

📊

**ADC Pins**: Use GPIO32-39 for analog input on ESP32

**Voltage**: 3.3V recommended for ESP32 ADC compatibility

🎚️

**Adjustment**: Turn onboard potentiometer to set digital trigger threshold

🧲

**Reed Switch**: Binary sensor (open/closed) responding to magnetic fields

🔋

**LED Indicator**: Onboard LED shows detection status

📌

**Comparison**: Larger reed switch than KY-021, potentially greater detection range

Help & Support

KY-025 Troubleshooting

Common issues and solutions to help you get your sensor working

Common Issues

Debugging Tips

Code Examples

KY-025 Programming Examples

Ready-to-use code examples for different platforms and frameworks

Summary

Wrapping Up KY-025

The ESP32 KY-025 Reed Switch Module is a powerful KY-0xx module sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

Best Practices

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Safety First

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.

Ready to Start Building?

Now that you have all the information you need, it's time to integrate the KY-025 into your ESP32 project and bring your ideas to life!

Similar Options

Explore Alternative Sensors

Looking for alternatives to the KY-025? Check out these similar sensors that might fit your project needs.

KY-017 Mercury Tilt Switch Module

KY-017 Mercury Tilt Switch Module

KY-0XX MODULE Digital

The KY-017 is a mercury tilt switch module that detects changes in orientation. When tilted beyond a certain angle, the internal mercury...

View Details
KY-002 Vibration Switch Module

KY-002 Vibration Switch Module

KY-0XX MODULE Digital

The KY-002 is a vibration switch module that detects shocks and vibrations through a conductive spring mechanism. Upon movement, it sends a...

View Details
KY-021 Mini Magnetic Reed Switch Module

KY-021 Mini Magnetic Reed Switch Module

KY-0XX MODULE Digital

The KY-021 is a mini magnetic reed switch module that detects the presence of a magnetic field. It provides a digital signal output, making...

View Details