Demo GIF
" data-cpx-injected="1"> ESP32 Sensor Hub with Web UI — ESP32 & ESP8266 Build | CodeProven

ESP32 & ESP8266 Connectivity · Intermediate · Web control

ESP32 Sensor Hub with Web UI

Several sensors behind one page, so the whole rig reads at a glance.

Firmware status: Generated from this project's own pin map and compiled with arduino-cli for esp32:esp32:esp32 before publication; bench validation on your hardware is still required..

Hardware scope

Multiple ADC channels, page plus JSON, heap reporting. Pins assigned by the generator: out 1 → GPIO4, in 1 → GPIO34, in 2 → GPIO35.

Components

  • ESP32 board
  • Three analog sensors (light, temperature, position)
  • Jumper wires and a breadboard
  • 5 V USB supply

Tools

  • USB programming cable
  • Multimeter
  • Current-limited bench supply (for anything that switches a load)
  • Small screwdriver and wire cutters

Build steps

  1. Add one sensor at a time and confirm each reading before adding the next.
  2. Flash and open the page; compare each value against a known reference.
  3. Poll /data from a script and confirm the values change at the rate you expect.
  4. Leave it running for an hour and check the heap figure in the log for a slow leak.

Test and expected result

All channels read and track their sensors, JSON is stable over hours, and free heap does not fall continuously.

Acceptance checks

all channels read, json stable, heap flat over an hour

Safety and limits

Sensors sharing a supply can couple noise into each other. If one channel is erratic, power it separately before rewriting the code.

Guide source: Generated from this project's own pin map and compiled with arduino-cli for esp32:esp32:esp32 before publication; bench validation on your hardware is still required.

Download Arduino source code

Download connection diagram SVG

Related projects

Back to all project guides · Study the course