IoT Projects
WiFi Home Automation Switch
Switch four appliances from a phone or browser using an ESP32.

Overview
The ESP32 hosts a small web page; tapping a button toggles a relay. Mains wiring must be done carefully, inside an enclosure.
Build Steps
Wire the relay board
Power it from 5 V and connect IN1–IN4 to four ESP32 pins.
Write the web server
One button per relay that flips its pin.
Wire loads safely
Use screw terminals, keep mains inside the enclosure and never touch it while powered.
Mount in the box
Fix boards with standoffs and close the lid before connecting to mains.