The magnetic switch sensor comes in a pair consisting of a Reed Switch and a magnet. The wired part of the module is the reed switch, whereas the other part is the magnet. It is commonly used as a home security alarm system.


If you have any questions on this product please feel free to contact us.

*Disclaimer: The images are merely illustrative.

The sensor can be connected to a microcontroller or a processor pretty easily. The Reed Switch part has 2 outputs- Ground and Signal.

MC-38 Connections with MCU

Note: The magnetic switch is non-polar, there is no specific pinout. You can connect the switch’s ground and signal cable in any order.



MC-38 Magnetic Switch Working

In the left half of the image, the magnet is at a distance to the switch, which prevents the metal reeds to go closer and complete the circuit. Whereas, on the other half of the image, it can be seen that when the magnet is closer to the switch, the metal reeds get connected to one another and the circuit is completed and we observe an output through the sensor module.

To summarise, when the magnet is close by, the circuit is closed and we obtain an output, and when the magnet is far from the reed switch, the circuit is open and we do not get an output



Here are some of the applications of this module.

  1. Can be used at doors or windows to know the open and closed state
  2. Used to detect an intruder activity
  3. Home Alarm system


2D Model

Below is the 2D model of the module. It can be used to design custom footprints and be used in custom-designed printed circuit boards or CAD models.

MC-38 Magnetic Switch Dimensions

Note: All the dimensions are in millimeters.


You might also like