Rectronx Circuits
Components

Magnetic Reed Switch Sensor

Simple magnetic switch for door, window and cabinet status detection.

Door Contact Sensor4.5/5RM2-RM10Beginner
ArduinoESP32Raspberry Pi
Magnetic Reed Switch Sensor electronics module illustration

AI Ready Overview

Quick Summary

Reed Switch is a door contact sensor commonly used in FYP and embedded projects. It is best for door status and cabinet tamper, with wiring and testing planned around Arduino, ESP32, Raspberry Pi.

Difficulty

Beginner

Time Required

1-3 days for basic wiring and sample code; 1 week if used inside a complete FYP prototype

Cost

RM2-RM10 module range in Malaysia; full project cost depends on scope.

Components

Reed Switch, Arduino, ESP32, Raspberry Pi

Overview

What is Reed Switch?

Reed switches detect whether a magnet is near the sensor. They are simple, low-cost modules for door-open, cabinet tamper and parcel box status projects.

Engineering Reference

Quick Specs

Operating Voltage3.3V / 5V
InterfaceDigital
DifficultyBeginner
Typical Malaysia PriceRM2-RM10
Best ForDoor status, Cabinet tamper

Real Usage Notes

Suitable / Not Suitable

Suitable for

  • Door status
  • Cabinet tamper
  • Parcel box detection

Not suitable for

  • Distance measurement
  • High-security certified access
  • Heavy current switching

Build Planning

Difficulty

Reed Switch is rated Beginner. Plan around 1-3 days for basic wiring and sample code; 1 week if used inside a complete fyp prototypedepending on wiring, libraries, calibration, dashboard/app integration and testing evidence.

Build Planning

Time Required

1-3 days for basic wiring and sample code; 1 week if used inside a complete FYP prototype

Malaysia Price Guidance

Cost

Typical module price range: RM2-RM10. This is component guidance only; a complete FYP cost depends on controller, sensors, casing, display, app/dashboard, documentation and timeline.

Connections

Pinout

VCC

Power input. Check whether the module expects 3.3V or 5V before wiring.

GND

Common ground with the controller and external supply.

Digital

Main Digital connection used by the module.

IO

Additional signal pins depend on the exact module variant.

Platform Notes

Wiring Guides

Reed Switch with Arduino / ESP32

Connect power, ground and the Digital signal lines. Use level shifting when a 5V module connects to a 3.3V controller.

Reed Switch VCC5V or module-rated supply
Reed Switch GNDController GND
Signal pinsDigital

Fix Common Problems

Troubleshooting

Check wiring against the pinout before debugging code.
Use a stable power supply and common ground between modules.
Test the component with a simple example sketch before adding dashboard, app or database features.

Troubleshooting

Common Mistakes

Wrong magnet alignment
No pull-up or pull-down
Mounting sensor too far from magnet

FYP Ideas Using Reed Switch

Related Projects

Compare Options

Alternative Components

Student Questions

FAQ

Is Reed Switch good for FYP projects?

Yes, Reed Switch is suitable for FYP work when the project matches its limits: Door status and Cabinet tamper.

What is the most common Reed Switch mistake?

Wrong magnet alignment