

A door contact is a security device used to detect the open or closed state of a door. It typically consists of two parts: a magnet and a reed switch. When the door is closed, the magnet aligns with the reed switch, keeping the circuit closed. When the door opens, the magnet moves away, causing the reed switch to open the circuit and send a signal. Door contacts are widely used in security systems, home automation, and access control systems.








Below are the typical technical specifications for a standard door contact:
| Parameter | Value |
|---|---|
| Operating Voltage | 3V to 24V DC |
| Contact Type | Normally Open (NO) or Normally Closed (NC) |
| Contact Rating | 500mA at 12V DC |
| Operating Distance | 10mm to 25mm (depending on model) |
| Housing Material | ABS plastic or similar durable material |
| Mounting Type | Surface-mounted or recessed |
| Operating Temperature | -20°C to 50°C |
Door contacts typically do not have pins but instead use two wires for connection. The wiring details are as follows:
| Wire Color | Description |
|---|---|
| Red/White | Signal wire (connects to the input of the monitoring device) |
| Black | Ground wire (connects to the ground of the monitoring device) |
Mounting the Door Contact:
Wiring the Door Contact:
Testing the Circuit:
Below is an example of how to connect and use a Normally Open (NO) door contact with an Arduino UNO:
// Define the pin connected to the door contact
const int doorContactPin = 2;
// Variable to store the door status
int doorStatus = 0;
void setup() {
// Initialize the door contact pin as an input
pinMode(doorContactPin, INPUT);
// Start the serial communication for debugging
Serial.begin(9600);
}
void loop() {
// Read the state of the door contact
doorStatus = digitalRead(doorContactPin);
// Check if the door is open or closed
if (doorStatus == HIGH) {
// Door is open
Serial.println("Door is OPEN");
} else {
// Door is closed
Serial.println("Door is CLOSED");
}
// Add a small delay to avoid spamming the serial monitor
delay(500);
}
Door contact not triggering correctly:
False triggers or noise in the signal:
No response from the monitoring device:
Door contact works intermittently:
Q: Can I use a door contact with an AC-powered system?
A: Most door contacts are designed for low-voltage DC systems. If you need to use it with an AC system, ensure the contact rating supports it or use a relay to interface with the AC circuit.
Q: What is the difference between Normally Open (NO) and Normally Closed (NC) contacts?
A: A Normally Open (NO) contact remains open (no current flows) when the door is closed and closes (current flows) when the door opens. A Normally Closed (NC) contact behaves oppositely, remaining closed when the door is closed and opening when the door opens.
Q: Can I use a door contact outdoors?
A: Standard door contacts are not weatherproof. For outdoor use, choose a weatherproof model or install the device in a protected enclosure.
Q: How do I extend the wire length for a door contact?
A: Use shielded cables to minimize electrical noise and ensure secure connections to prevent signal loss.