Adults onlyESP32Level 2/3
mmWave Home Automation
Walk in and the light and fan switch on. Sit still and they stay on. Leave and they switch off.

Adults only
Involves 230V mains switching.
Not for children. Build at your own risk.
All mains wiring must be done by a licensed electrician inside a closed enclosure.
Strictly follow the description given with this video.
Video
The video link will be added here soon.
How it works
- The mmWave radar senses a person even when they sit still.
- Present: the ESP32 switches relay 1 (light) and relay 2 (fan) on.
- After a short empty-room delay, both switch off.
- HIGH-level-trigger relays work directly from the ESP32's 3.3V pins.
Parts you need
- mmWave radar sensor (24 GHz presence)× 1Buy
- ESP32 development board (30-pin)× 1Buy
- 2× 1-channel 5V relay modules (HIGH-level trigger)× 2Buy
- 5V USB supply× 1Buy
Kit for this projectPrice on request
Get the kitWiring

PowerGroundSignal
| # | From | Connect to |
|---|---|---|
| 1 Power | Radar V | ESP32 3V3 |
| 2 Ground | Radar G | ESP32 GND |
| 3 Signal | Radar IO | ESP32 D23 |
| 4 Power | ESP32 VIN / GND | 5V / GND rails |
| 5 Signal | Relay 1 IN (light) | ESP32 D32 |
| 6 Signal | Relay 2 IN (fan) | ESP32 D26 |
| 7 Power | Relay VCC | 5V rail |
| 8 Ground | Relay GND | GND rail |
| 9 Signal | Relay COM / NO | Light and fan circuits (electrician) |
3D print files
- Radar wall caseSettings in the STL zip READMELink at launch
- Relay boxSettings in the STL zip READMELink at launch
Code
The tested Arduino / ESP32 code for this project will be posted here, ready to copy.