






The MC-38 Wired Door/Window Magnetic Sensor is a reliable reed switch housed in a durable ABS plastic shell for detecting door, window, or drawer openings. When the magnet is within 15mm, the reed switch closes the circuit; once separated, the circuit opens. With a 25cm cable and easy-to-mount design, it's perfect for home security alarm systems, Arduino projects, ESP32-based smart home automation, and DIY door/window monitoring solutions.
حساس الباب والنافذة المغناطيسي MC-38 هو مفتاح ريد موضوع داخل غلاف بلاستيكي ABS متين للكشف عن فتح الأبواب والنوافذ والأدراج. عندما يكون المغناطيس على بُعد 15 ملم أو أقل، يغلق المفتاح الدارة، وعند ابتعاد المغناطيس تنفتح الدارة. بكابل بطول 25 سم وتصميم سهل التركيب، يعتبر مثالياً لـ أنظمة إنذار المنازل، مشاريع الأردوينو، الأتمتة الذكية بـ ESP32، وحلول مراقبة الأبواب والنوافذ DIY.
The MC-38 Wired Door/Window Magnetic Sensor is one of the most popular and reliable reed switch sensors used in home security and electronics projects. The sensor consists of two parts: a reed switch housed in a small ABS plastic enclosure (with two wires attached) and a separate magnet in an identical-looking enclosure. When the two halves are placed close to each other, the magnetic field activates the reed switch, closing the circuit. When the two halves are separated by more than the activation distance, the switch opens and the circuit is broken.
This simple but effective mechanism makes the MC-38 ideal for detecting the opening and closing of doors, windows, drawers, cabinets, gates, mailboxes, refrigerators, and any other moving panel. It is widely used in commercial alarm systems, home security setups, smart home automation, and DIY electronics projects.
The sensor operates at a maximum distance of 15mm (~0.6"), meaning the magnet can trigger the switch reliably even with a small gap between the two halves — useful when mounting on slightly imperfect surfaces or where some clearance is needed. Both halves include mounting tabs and screw holes, but they can also be installed using double-sided foam tape for non-invasive installations.
The MC-38 is passive — it requires no power to operate. The reed switch simply behaves as a normally open (NO) switch that closes when in proximity to the magnet. This makes it extremely easy to use with Arduino, ESP32, ESP8266, Raspberry Pi, and any digital input pin (using a pull-up or pull-down resistor configuration). It is also fully compatible with traditional wired alarm panels.
The sensor is rated for up to 100 mA at 200 VDC maximum, which is more than sufficient for low-voltage signaling in microcontroller and alarm applications.
Wiring Logic: