DIYables Door Sensor

Sensors
Buy on Amazon
DIYables MC-38 wired magnetic door sensor 4-pack for Arduino ESP32 security projects Click to zoom
DIYables MC-38 wired magnetic door sensor 4-pack for Arduino ESP32 security projectsMagnetic door switch showing reed switch and magnet components for entry detectionDoor sensor with adhesive backing for easy mounting on doors and windowsMC-38 door sensor installed showing magnet and reed switch separation detectionFour door sensors package showing quantity and wired connection options

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)

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