DIYables Door Sensor
Click to zoom




Quick Overview
The DIYables MC-38 door sensor is a wired magnetic switch that detects when a door or window is opened or closed. It consists of a magnet and a reed switch that closes when the magnet is nearby and opens when the magnet moves away.
This 4-pack includes four complete sensor sets, each with one magnet and one reed switch with wires. The sensors have removable adhesive backing for easy mounting on flat surfaces. They work with Arduino, ESP32, ESP8266, Raspberry Pi, and any microcontroller for home security, entry detection, and automation projects.
Key Features
- 4-Pack — Four complete sets, each with one magnet and one reed switch
- Magnetic Operation — Reed switch closes when near magnet, opens when separated
- Easy Mounting — Removable adhesive paper on back for simple installation
- Wired Connection — Each reed switch has two wires for direct connection
- Door/Window Detection — Ideal for detecting open or closed status
- Wide Compatibility — Works with Arduino, ESP32, ESP8266, Raspberry Pi, and any microcontroller
- Tutorial Support — Comprehensive tutorials and code examples available
SPECIFICATION
| Specification | Value |
|---|---|
| Product Type | Magnetic Door/Window Sensor |
| Model | MC-38 |
| Sensor Type | Reed switch |
| Connection Type | Wired (2 wires) |
| Wire Length | Approx. 30cm |
| Maximum Gap | 15-20mm (between magnet and switch) |
| Contact Resistance | Less than 200 ohms |
| Switch Power | 10W |
| Mounting | Adhesive backing |
| Package Quantity | 4 sets (4 magnets + 4 reed switches) |
Tutorials
- Arduino - Door Sensor
- Arduino Uno R4 - Door Sensor
- Arduino Uno Q - Door Sensor
- Arduino Nano - Door Sensor
- Arduino Nano ESP32 - Door Sensor
- Arduino Nano 33 IoT - Door Sensor
- Arduino Mega - Door Sensor
- Arduino Giga R1 WiFi - Door Sensor
- Arduino MicroPython - Door Sensor
- ESP32 - Door Sensor
- ESP32-S3 - Door Sensor
- ESP32 MicroPython - Door Sensor
- ESP8266 - Door Sensor
- Raspberry Pi - Door Sensor
- Raspberry Pi Pico - Door Sensor
COMPATIBLE HARDWARE
- Arduino boards (UNO, Mega, Nano, etc.)
- ESP32 development boards
- ESP8266 (NodeMCU, Wemos D1, etc.)
- Raspberry Pi (all models)
- Raspberry Pi Pico
- Any microcontroller with digital input









