Reed Switch Module

  • 🧲 Reed switch module for magnetic sensing
  • 🔁 Detects magnet presence (open/close switch action)
  • ⚡ Digital output—easy to read with Arduino/MCU GPIO
  • 🛠️ Simple 3-pin interface: VCC, GND, OUT
  • 🚪 Ideal for door/window sensors and security alarms
  • 🧩 Great for position sensing, counters, and limit switches
  • 📦 Compact module—breadboard friendly
  • ✅ Perfect for smart home and DIY automation projects

Apple Shopping Event

Hurry and get discounts on all Apple devices up to 20%

45,00 EGP

15 People watching this product now!

Payment Methods:

Description

This module can be applied in Program-controlled switches, copiers, washing machines, refrigerators, cameras, Disinfection cabinet, door, window magnetic, electromagnetic relays, electronic weighing, level meter, gas meter, water meter, and so on.


Specifications and Features:

  1. Clean, good waveform driving ability, more than 15mA.
  2. Working voltage 3.3V-5
  3. Output format: digital switching output (0 and 1)
  4. A  fixed bolt holes for easy installation
  5. PCB size: 3.2cm x 1.4cm
  6. Digital output using a wide voltage LM393 comparator

Package Includes:

1 x Reed Switch Module

🔌
Pin Connections
1 Table
Pin Connections Table 1
BoardSensor PinConnection
Reed ModuleVCC/GND/OUT3.3-5V / GND / board digital pin
📟
Reed Switch Module
7 Examples • C/C++ | Boards: Arduino Uno, Arduino Nano, Arduino Mega, ESP32, ESP8266, STM32, Raspberry Pi Pico
Reed Switch Module - Arduino Uno
Reed Switch Module - Arduino Nano
Reed Switch Module - Arduino Mega
Reed Switch Module - ESP32
Reed Switch Module - ESP8266
Reed Switch Module - STM32
Reed Switch Module - Raspberry Pi Pico
📄 File: reed_switch_module_-_arduino_uno.inoArduino Uno
294 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Digital OUT pin 2 on Arduino Uno
6#define REED_PIN 2
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(REED_PIN, INPUT);
11}
12
13void loop() {
14 Serial.println(digitalRead(REED_PIN) == HIGH ? "Magnet near" : "No magnet");
15 delay(200);
16}
📄 File: reed_switch_module_-_arduino_nano.inoArduino Nano
295 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Digital OUT pin 2 on Arduino Nano
6#define REED_PIN 2
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(REED_PIN, INPUT);
11}
12
13void loop() {
14 Serial.println(digitalRead(REED_PIN) == HIGH ? "Magnet near" : "No magnet");
15 delay(200);
16}
📄 File: reed_switch_module_-_arduino_mega.inoArduino Mega
295 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Digital OUT pin 2 on Arduino Mega
6#define REED_PIN 2
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(REED_PIN, INPUT);
11}
12
13void loop() {
14 Serial.println(digitalRead(REED_PIN) == HIGH ? "Magnet near" : "No magnet");
15 delay(200);
16}
📄 File: reed_switch_module_-_esp32.inoESP32
288 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Digital OUT pin 4 on ESP32
6#define REED_PIN 4
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(REED_PIN, INPUT);
11}
12
13void loop() {
14 Serial.println(digitalRead(REED_PIN) == HIGH ? "Magnet near" : "No magnet");
15 delay(200);
16}
📄 File: reed_switch_module_-_esp8266.inoESP8266
292 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Digital OUT pin D4 on ESP8266
6#define REED_PIN D4
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(REED_PIN, INPUT);
11}
12
13void loop() {
14 Serial.println(digitalRead(REED_PIN) == HIGH ? "Magnet near" : "No magnet");
15 delay(200);
16}
📄 File: reed_switch_module_-_stm32.inoSTM32
292 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Digital OUT pin PB4 on STM32
6#define REED_PIN PB4
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(REED_PIN, INPUT);
11}
12
13void loop() {
14 Serial.println(digitalRead(REED_PIN) == HIGH ? "Magnet near" : "No magnet");
15 delay(200);
16}
📄 File: reed_switch_module_-_raspberry_pi_pico.inoRaspberry Pi Pico
300 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Digital OUT pin 2 on Raspberry Pi Pico
6#define REED_PIN 2
7
8void setup() {
9 Serial.begin(115200);
10 pinMode(REED_PIN, INPUT);
11}
12
13void loop() {
14 Serial.println(digitalRead(REED_PIN) == HIGH ? "Magnet near" : "No magnet");
15 delay(200);
16}
Reed switch pre-mounted on a breakout with a comparator - clean digital output.

Specification

Specification

WeightWeight8 g
Dimensions3,5 × 1,5 × 1 cm
Product NameReed Switch Module
Sensor TypeMagnetic Reed Switch
Operation TypeNormally Open (NO)
Trigger MethodMagnetic Field
Output TypeDigital (ON/OFF)
Operating Voltage3.3V – 5V
Current RatingLow Current Signal
IndicatorOnboard LED
Mounting TypePCB Module
Response TimeFast
ApplicationDoor Sensors, Position Detection, Security Systems, DIY Electronics

Customer Reviews