Door sensor
A reed contact on the frame says when the front door opens, on USB power. About $35 in parts.
Parts
- Freenove ESP32-S3-WROOM CAM (N16R8, 16 MB flash / 8 MB PSRAM, GC0308) C-002$21.95
- Magnetic contact switch, door/window reed with magnet (Adafruit 375) P-050$3.95
- USB-C 5.1 V 3 A Power Supply E-005$8.74
Parts $34.64 · powered by the USB-C 5.1 V 3 A Power Supply
Wiring
The volts are the parts' own: the USB-C 5.1 V 3 A Power Supply puts out 4.845–5.355 V, and the Freenove ESP32-S3-WROOM CAM (N16R8, 16 MB flash / 8 MB PSRAM, GC0308)'s regulator makes the 3.2–3.4 V rail its GPIO and most of the sensors run from. Which header pin each lead lands on is our suggestion — the registry has no pin map, and nothing here has been wired on a bench.
Power the board off while you plug anything in. Every connector here is keyed: if it doesn't click in easily, turn it over rather than forcing it.
Readings
What this build sends: one column per channel its parts read or drive, with the unit the capability carries. The values and times below are sample data.
| Time | DoorP-050 |
|---|---|
| closed | |
| closed | |
| OPEN | |
| closed | |
| closed | |
| OPEN |