Motion Light for Home Automation Kit: ESP32, PIR, Relay
Open this project in the Soldr app → What is Soldr.ai → wiring, code and test steps for exactly these parts
Motion Light for Home Automation Kit: ESP32, PIR, Relay — an intermediate-level kit.
Motion Light for Home Automation Kit: ESP32, PIR, Relay
Every part needed, pre-tested for compatibility, with an AI build companion trained on this exact project. Shipped from Bengaluru in 3-7 days.
Kit at a glance
What you build: A motion light for your home automation server: an ESP32 connects through the server's native API and appears as a motion sensor, a temperature sensor and a light switch. Set a rule so the relay turns a light on with motion and off after the room empties.
What's in the box
- ESP32 Dev Board
- DHT22
- HC-SR501 PIR
- 5V Relay Module
- 4.7kΩ Resistors × 5
- 10kΩ Resistors × 5
- 400-pt Breadboard
- M-M Wires × 20
- Micro USB Cable
Power: USB. A USB charger is not included. A home automation server is not included.
Skill level: Intermediate (3-4 hours).
Frequently asked questions
Which server?
An open-source home automation server that supports native ESP32 devices.
Can it switch mains lights?
The relay can, but mains wiring needs a qualified person.
Create a real-world energy-saving system that automatically controls lights based on room occupancy and ambient temperature. Using the ESP32's native Wi-Fi, you'll expose a temperature sensor, motion detector, and relay switch directly to a home automation server — no extra hubs needed. This kit gives you the exact hardware and guidance to build a project that can reduce electricity bills in any home or school.
What You'll Build
You'll assemble a smart energy saver that turns off lights when no motion is detected and adjusts lighting based on temperature readings. The finished project integrates seamlessly with a home automation server, enabling you to create automations like turning off all lights when the room is empty for 10 minutes, or dimming lights as the temperature rises. It's a practical, scalable solution for home or classroom energy management.
What You'll Learn
- Program ESP32 to read DHT22 temperature and humidity data accurately
- Interface HC-SR501 PIR motion sensor with interrupt logic for real-time responses
- Control a 5V relay to switch AC/DC loads safely with optocoupler isolation
- Expose sensor and switch entities to a home automation server using the native home-automation firmware framework API
Kit Contents
| Component | Quantity |
|---|---|
| ESP32 Dev Board | 1 |
| DHT22 | 1 |
| HC-SR501 PIR | 1 |
| 5V Relay Module | 1 |
| 4.7kΩ Resistors | 5 |
| 10kΩ Resistors | 5 |
| 400-pt Breadboard | 1 |
| M-M Wires | 20 |
| Micro USB Cable | 1 |
Who This Kit Is For
This intermediate kit is ideal for CBSE students exploring IoT and automation, B.Tech ECE/EEE 1st-year students building their first a home automation server project, and ATL Tinkering Lab mentors facilitating energy-saving hackathons. If you're preparing for Smart India Hackathon or want a practical project for your college mini-project, this kit provides a real-world automation system that can be extended.
Built and Backed by Compoden
Every Compoden kit ships with an AI build companion trained on this exact project — accessible via a QR code on the box, with WhatsApp and email backup. We've spent 10 years building projects for makers, schools, and institutions across India. If a part fails because of a manufacturing defect, replace it free within 7 days.
What if I get stuck during the build?
Scan the QR code to access the AI build companion trained specifically for this Auto Light Energy Saver project. It provides step-by-step guidance, circuit help, and code troubleshooting. If you need human support, ping us on WhatsApp for prompt assistance.
Do I need a separate home automation server server to use this kit?
Yes, you'll need a home automation server instance running on a Raspberry Pi, old PC, or virtual machine. The kit's ESP32 directly integrates via the native API — no extra bridges. We provide instructions to set up a home automation server if you're new.
Can this kit control AC devices like fans or tube lights?
Absolutely. The included 5V relay module can switch up to 250V AC at 10A, making it safe to control lights, fans, or other appliances. We include wiring guidance for AC loads with safety notes. Always ensure an adult supervises higher-voltage connections.
How is the energy saving measured?
By automating lights only when motion is detected and integrating temperature-based logic, the system can cut unnecessary lighting hours. You'll learn to log usage data in a home automation server and estimate savings. Real-world testing shows 15-30% reduction in lighting energy in typical classrooms.
Energy Saving — ESP32 uses home automation server's native API to expose temperature, relay and motion as HA entities directly.
What's in this kit
- ESP32 Dev Board
- DHT22
- HC-SR501 PIR
- 5V Relay Module
- 4.7kΩ Resistors x5
- 10kΩ Resistors x5
- 400-pt Breadboard
- M-M Wires x20
- Micro USB Cable
Other projects you can build
Shipping Information
- Prepaid Orders: ₹45 for orders up to ₹1,999, FREE shipping above ₹1,999
- COD Orders: ₹45 shipping for orders up to ₹1,999, FREE shipping above ₹1,999. COD available.
- Delivery Timeline: Dispatch in 3-7 days, delivery in 2-7 days depending on location
Returns & Warranty
- 7-Day Return: Manufacturing defects only (approval required)
- Warranty: 7 days from delivery
- Non-Returnable: Batteries, consumables, cut wires, clearance items