Top 10 home automation projects with Arduino and ESP32
The 10 best home automation projects: PIR night light, clap switch, temperature fan, Bluetooth relays, Wi-Fi switch, smart dustbin, leak alert, door lock and Home Assistant sensors.
What are the best home automation projects?
Home automation projects switch a light, fan or lock based on a sensor or a command from your phone. Start with the PIR hallway night light, the double-clap switch and the temperature-controlled fan. Then add Bluetooth relays, an ESP32 Wi-Fi switch and Home Assistant sensors.
- Projects
- 10 guided builds
- Levels
- Beginner, Intermediate
- Build time
- 50 min to 3 h
The 10 projects
Ten guided builds across lighting, climate, security and energy, ordered from simple triggers to networked systems.
Motion night light
A PIR sensor turns on a soft night light for a minute when someone walks past in the dark.
Double-clap light switch
Clap twice and a relay toggles a lamp. A sound sensor module and a little timing logic ignore single bangs.
Temperature-controlled 12 V fan
A DS18B20 reads the temperature and a logic-level MOSFET runs a 12 V fan faster as it gets warmer, and off when it is cool.
Bluetooth home automation with four relays
Switch four loads on and off from a phone over Bluetooth using an HC-05 and a 4-channel relay board.
ESP32 Wi-Fi switch with web buttons
An ESP32 hosts a small web page on your home Wi-Fi with buttons that switch two relays from any phone or laptop.
Touchless smart dustbin
An ultrasonic sensor sees a hand over the bin and a servo lifts the lid, then closes it after three seconds.
Water leak detector with phone alert
A sensor under the washing machine or RO purifier sends a phone alert the moment water appears on the floor.
Keypad password door lock
Enter a 4-digit code on a membrane keypad and a 12 V solenoid lock opens for five seconds, with prompts on an LCD.
ESPHome sensors in Home Assistant
Write a YAML file, flash an ESP32 and a new sensor appears in Home Assistant with no code.
Whole-room energy meter with PZEM-004T
A PZEM-004T module with a clamp CT measures voltage, current, power and units used by a room, and shows them on a web page.
Before you start
Every build has the full parts list, wiring table, tested code and troubleshooting. Check the circuit or sketch first in the code space or the circuit builder, then order parts with the Buy at Geekobot links on each project page. ElectroLark does not sell parts.
New to the basics? Take the free sensors actuators course, or browse all projects and final-year project briefs.
home automation projects: common questions
What is the easiest home automation project?
The PIR hallway night light: a motion sensor turns on a light at night. It uses three parts and takes about an hour.
Is it safe to switch mains devices?
Only if you know mains wiring and use a proper relay module in an enclosure. Beginners should practise on low-voltage loads such as 12 V lights and fans, and ask a qualified person for mains work.
Arduino or ESP32 for home automation?
Arduino for local sensor logic with no network. ESP32 when you want phone control, schedules or alerts over Wi-Fi.
Can I connect these to Home Assistant?
Yes. The ESPHome sensors build shows how an ESP32 reports to Home Assistant.
Can I use these as college mini projects?
Yes. Add logging, an alert and tests with measured response times to turn a build into a mini project.
