ESP32 IoT Build Lab and Smart Home Automation

ESP32 IoT Projects & Smart Home Tutorials

Build connected devices the right way: wire the circuit, understand the pins, test the sensor, then add Wi-Fi, MQTT, mobile control, Home Assistant, Node-RED, camera features, and smart home automation.

WolfieWeb IoT Workshop - Lab Manual Edition
Detailed wiring, pin tables, beginner steps, troubleshooting, upgrade paths, videos, and printable PDF guidance.
Download IoT Lab Manual PDF

WolfieWeb IoT Command Center

Start here if you want to build real smart devices instead of just reading theory. This hub connects ESP32 projects, MQTT dashboards, Home Assistant ideas, mobile app control, sensor nodes, relay automation, and connected camera builds into one learning path.

Featured ESP32 Learning Paths

Use these as your roadmap. Start with one sensor, prove the wiring, then move into dashboards, automation, phone control, and camera monitoring.

Start building smarter connected devices

IoT is where electronics, sensors, software, and the internet come together. The upgraded version of this page teaches the build process instead of only showing the finished idea.

Start small, test one part at a time, and use the wiring diagrams as your map. Every project below now includes a pin table, parts list, common mistakes, and next-level upgrades.

  • Wire sensors and outputs with clearer pin-by-pin guidance.
  • Use SVG diagrams that can be opened, printed, or placed inside PDFs.
  • Understand MQTT, relay safety, mobile control, and camera setup as systems.
  • Build confidence before expanding into full smart-home projects.
⚡ Start Your First IoT Build

What is upgraded

5Lab Builds
5SVG Wiring Diagrams
PDFLab Manual
TablesPin Maps
IoT Lab Manual

Wi-Fi Weather Station

BeginnerESP32Wiring SVG Included

Build this project one layer at a time: wire the hardware, test the signal, then add the Wi-Fi or network feature. That approach keeps the project understandable instead of turning it into a mystery box.

What this teaches: Sensor wiring, Wi-Fi readings, dashboard thinking.
Wi-Fi Weather Station detailed SVG wiring diagram

Build instructions

Parts needed

  • ESP32 Dev Board
  • DHT22 or DHT11 sensor
  • 10k ohm resistor
  • Breadboard
  • Male-to-male jumper wires
  • USB cable

Step-by-step build

  1. Place the DHT22 sensor across the breadboard gap so each pin has its own row.
  2. Connect VCC to ESP32 3V3 and GND to ESP32 GND before adding the data line.
  3. Connect DATA to GPIO4, then place the 10k resistor between VCC and DATA.
  4. Upload a basic DHT test sketch and confirm serial readings before adding Wi-Fi or dashboard code.
  5. Only after the readings are stable, add the network publishing or dashboard portion.

Pin mapping

Board / SourceConnects ToWhy It Matters
ESP32 3V3DHT22 VCCPower the sensor from 3.3V, not 5V.
ESP32 GNDDHT22 GNDCommon ground is required.
ESP32 GPIO4DHT22 DATADigital data signal.
10k resistorVCC to DATAPull-up keeps data stable.

Common mistakes

  • Using 5V on the sensor when your board expects 3.3V logic.
  • Forgetting the 10k pull-up resistor on DATA.
  • Reading from the wrong GPIO number in code.

Upgrade ideas

  • Send readings to MQTT every 60 seconds.
  • Add a small OLED display.
  • Log data to a web dashboard.
Testing rule: Do not add the dashboard, phone app, or cloud connection until the basic circuit works locally. Hardware first, network second.
Wi-Fi Weather Station

Video not loading? Watch the tutorial on YouTube.

IoT Lab Manual

Smart Relay Controller

Beginner/IntermediateESP32Wiring SVG Included

Build this project one layer at a time: wire the hardware, test the signal, then add the Wi-Fi or network feature. That approach keeps the project understandable instead of turning it into a mystery box.

What this teaches: Safe switching, GPIO output control, automation basics.
Smart Relay Controller detailed SVG wiring diagram

Build instructions

Parts needed

  • ESP32 Dev Board
  • 1-channel 3.3V-compatible relay module
  • Low-voltage LED strip or small DC load
  • External low-voltage power supply
  • Breadboard/jumpers
  • USB cable

Step-by-step build

  1. Start with a low-voltage DC load only; do not begin with wall voltage.
  2. Wire relay VCC and GND to the control side first.
  3. Connect relay IN to GPIO5 and test whether the relay clicks with a simple blink-style sketch.
  4. Wire the low-voltage load through COM and NO so it only powers when the relay closes.
  5. Test short ON/OFF cycles and confirm the load switches cleanly.

Pin mapping

Board / SourceConnects ToWhy It Matters
ESP32 3V3 or VINRelay VCCMatch the relay module requirements.
ESP32 GNDRelay GNDCommon ground for control side.
ESP32 GPIO5Relay INGPIO toggles relay state.
Load +Relay COM/NOUse low voltage while learning.

Common mistakes

  • Working with AC mains before understanding relay wiring.
  • Buying a 5V relay that does not trigger reliably from 3.3V GPIO.
  • Mixing load power and ESP32 power incorrectly.

Upgrade ideas

  • Add a web button for ON/OFF control.
  • Add a physical override button.
  • Add MQTT commands such as home/relay/set.
Testing rule: Do not add the dashboard, phone app, or cloud connection until the basic circuit works locally. Hardware first, network second.
Smart Relay Controller

Video not loading? Watch the tutorial on YouTube.

IoT Lab Manual

MQTT Sensor Node

IntermediateESP32Wiring SVG Included

Build this project one layer at a time: wire the hardware, test the signal, then add the Wi-Fi or network feature. That approach keeps the project understandable instead of turning it into a mystery box.

What this teaches: Publish/subscribe messaging and broker-based IoT communication.
MQTT Sensor Node detailed SVG wiring diagram

Build instructions

Parts needed

  • ESP32 Dev Board
  • DHT22 sensor
  • 10k ohm resistor
  • Breadboard/jumpers
  • MQTT broker such as Mosquitto
  • Wi-Fi network

Step-by-step build

  1. Build and test the sensor wiring first, exactly like the weather station project.
  2. Install or choose an MQTT broker and confirm the broker IP address.
  3. Flash code that connects to Wi-Fi, then connects to the MQTT broker.
  4. Publish test messages before publishing sensor values.
  5. Subscribe from a dashboard or MQTT client and verify the data appears.

Pin mapping

Board / SourceConnects ToWhy It Matters
ESP32 3V3DHT22 VCCSensor power.
ESP32 GNDDHT22 GNDCommon ground.
ESP32 GPIO4DHT22 DATASensor input.
MQTT Topicwolfieweb/iot/weatherPublished readings go here.

Common mistakes

  • Wrong broker IP address or port.
  • Using the wrong topic name between publisher and subscriber.
  • Publishing too fast and flooding the broker.

Upgrade ideas

  • Add JSON payloads for temperature and humidity.
  • Add retained status messages.
  • Use Home Assistant or Node-RED as a dashboard.
Testing rule: Do not add the dashboard, phone app, or cloud connection until the basic circuit works locally. Hardware first, network second.
MQTT Sensor Node

Video not loading? Watch the tutorial on YouTube.

IoT Lab Manual

Mobile App Device Control

IntermediateESP32Wiring SVG Included

Build this project one layer at a time: wire the hardware, test the signal, then add the Wi-Fi or network feature. That approach keeps the project understandable instead of turning it into a mystery box.

What this teaches: Phone-to-device control and user interface thinking.
Mobile App Device Control detailed SVG wiring diagram

Build instructions

Parts needed

  • ESP32 Dev Board
  • LED or relay test output
  • 220 ohm resistor for LED
  • Breadboard/jumpers
  • Mobile control app or simple web dashboard
  • Wi-Fi network

Step-by-step build

  1. Wire a simple LED output first so testing is safe and obvious.
  2. Upload code that turns the LED on and off from a local command.
  3. Connect the ESP32 to your Wi-Fi network and print the IP address.
  4. Use your phone on the same Wi-Fi network to open the control screen or send commands.
  5. After the LED works, replace it with a relay or larger controlled output.

Pin mapping

Board / SourceConnects ToWhy It Matters
ESP32 GPIO2LED Anode through 220 ohm resistorTest output.
LED CathodeESP32 GNDCompletes circuit.
Phone AppESP32 Web/MQTT endpointSends command.
ESP32 Wi-FiRouterNetwork path.

Common mistakes

  • Phone and ESP32 on different networks.
  • Router blocking local device discovery.
  • Trying relay control before proving simple LED control.

Upgrade ideas

  • Add a better mobile UI with large buttons.
  • Add state feedback so the app shows ON/OFF correctly.
  • Add password protection before exposing anything outside the home network.
Testing rule: Do not add the dashboard, phone app, or cloud connection until the basic circuit works locally. Hardware first, network second.
Mobile App Device Control

Video not loading? Watch the tutorial on YouTube.

IoT Lab Manual

Connected Security Camera

Intermediate/AdvancedESP32-CAM or Raspberry PiWiring SVG Included

Build this project one layer at a time: wire the hardware, test the signal, then add the Wi-Fi or network feature. That approach keeps the project understandable instead of turning it into a mystery box.

What this teaches: Camera streaming, monitoring, and connected alerts.
Connected Security Camera detailed SVG wiring diagram

Build instructions

Parts needed

  • ESP32-CAM or Raspberry Pi camera setup
  • FTDI programmer for ESP32-CAM
  • PIR motion sensor optional
  • Stable 5V power supply
  • Jumper wires
  • MicroSD card optional

Step-by-step build

  1. Use a stable 5V supply; camera boards brown out easily with weak USB power.
  2. Wire FTDI programmer TX/RX crossed to the ESP32-CAM serial pins.
  3. Hold GPIO0 to GND only while flashing firmware.
  4. After flashing, remove GPIO0 from GND and reboot the board.
  5. Open the printed camera URL from a browser on the same network.

Pin mapping

Board / SourceConnects ToWhy It Matters
5V SupplyESP32-CAM 5VCamera needs stable power.
GNDESP32-CAM GNDCommon ground.
FTDI TX/RXESP32-CAM U0R/U0TUsed for programming.
GPIO0 to GNDFlash mode onlyRemove after flashing.

Common mistakes

  • Leaving GPIO0 grounded after flashing.
  • Weak power supply causing restarts.
  • Expecting camera stream to work outside the home network without router/security setup.

Upgrade ideas

  • Add PIR-triggered snapshots.
  • Save images to microSD.
  • Send motion alerts to a dashboard or phone.
Testing rule: Do not add the dashboard, phone app, or cloud connection until the basic circuit works locally. Hardware first, network second.
Connected Security Camera

Video not loading? Watch the tutorial on YouTube.

Printable IoT lab manual included

The updated PDF matches this page: wiring diagrams, pin maps, parts lists, beginner steps, common mistakes, and upgrade ideas.

Get the IoT Lab Manual PDF

Quick answers before you start

What board should you start with?

ESP32 is usually the best first choice because it has Wi-Fi, Bluetooth, strong community support, and enough power for most beginner-to-intermediate IoT builds.

What should you test first?

Test power and ground first, then one signal wire, then code, then network features. Do not stack problems.

What causes most beginner problems?

Weak power, messy wiring, missing common ground, wrong GPIO number, and adding Wi-Fi before the circuit works.

Related WolfieWeb paths

Share this page

⚡ Shop IoT Kits