Skip to main content
RK
Rojony Khatun
Last updated: Jun 12, 2026

Reed Switch Magnetic Sensor

Build a magnetic sensor using a reed switch. Detect magnets, doors, or proximity in DIY projects. Easy assembly with BC547 transistor for switching output.

Advertisement
Advertisement
Reed Switch Sensor

Reed Switch Sensor

An electromagnetic switch that opens or closes its contacts when exposed to a magnetic field, widely used in door sensors, security alarms, and proximity detection.

3V LED 5mm

3V LED 5mm

3V, 5mm round light-emitting diode

*Please note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

Advertisement

Reed Switch Magnetic Sensor

Build a magnetic sensor using a reed switch. Detect magnets, doors, or proximity in DIY projects. Easy assembly with BC547 transistor for switching output.

Advertisement

Reed switch sensor circuit

The reed switch magnetic sensor is used to detect a magnet. A signal is amplified by the BC547 transistor, which enables the sensor to toggle LEDs, buzzers, and relay the signals to the DIY electronic projects.

low-voltage magnetic sensor

The Reed Switch Magnets sensor is an easy-to-build DIY electronic project for detecting magnets, doors, or proximity. A reed switch is a mechanical switch that is closed by a magnetic field. The switch may be used with LEDs, buzzers, or relays to show detection when used with a BC547 transistor. It is a project that is most suitable for hobbyists, students, and do-it-yourselfers who are interested in the field of magnetic sensing and automation. It may be utilized in the alarm system, door sensor, and object detection initiatives. The reed switch is magnet-sensitive and can safely work with low-voltage DC. Resistors provide the correct way of operation of transistors and guard LEDs or relays. This sensor is small and can be easily attached to a breadboard, PCB, or enclosure to be used in practice.

Sponsored

Work / Installation (Inputs → Outputs)

  • Power Supply → 5–12V DC.
  • Reed Switch → Closes when a magnet is nearby.
  • BC547 Transistor → Acts as a switch for output load.
  • Resistors → Limit current to transistor base and output devices.
  • Output Load → LED, buzzer, or relay activates on magnetic detection.
  • Installation → Mount reed switch near magnet path, connect transistor, resistors, and load, then test for proper operation.

Testing & Final Adjustments

Once it is assembled, place a magnet near the reed switch and see the load turn on. Manipulate the values of resistors to ensure good transistor triggering. Make sure that the reed switch is properly placed so that it reacts to the magnet. Sensitivity Test at varying distances. Make sure that LEDs, buzzers, zeners, or relays do not flicker or lag. Effective testing is the way to make sure that it is detected properly and performs adequately. To make it permanent, wrap the sensor and wiring in a protective enclosure to avoid mechanical damage, nd to enhance the safety of the sensor's use in practice.

Advertisement

Frequently Asked Questions - Reed Switch Magnetic Sensor:

A mechanical switch that closes in the presence of a magnetic field.
BC547 NPN transistor acts as a switch for the output.
5–12V DC for safe operation.
Door sensors, magnetic alarms, object detection, DIY projects.
Yes, within the reed switch's sensitivity range.
Yes, easy to assemble on breadboard or PCB.
Yes, to protect the transistor and output devices.
Yes, BC547 can switch a small relay for higher loads.
Yes, operates at low DC voltage.
Yes, connect in parallel with proper resistors.
Advertisement
Advertisement
Advertisement