Dev.to
7/18/2026

Build an ESP32 energy meter with a live dashboard
Short summary
A step-by-step build guide for an ESP32-based mains electricity meter using a PZEM-004T v3.0 sensor and a nodrix dashboard on Cloudflare. The PZEM samples voltage and current together and reports volts, amps, watts, kWh, Hz, and power factor over serial to the ESP32, which forwards readings via WebSocket. Includes safety guidance for mains wiring, hardware wiring diagrams, and Arduino sketch code for the read-and-send loop.
- •ESP32 + PZEM-004T v3.0 measures real mains voltage, current, power, kWh, frequency, and power factor
- •Dashboard, history, and alerts via nodrix on Cloudflare with Telegram notifications for over-current events
- •Includes safety warnings for mains wiring and full Arduino sketch for the read-and-send loop
Generated with AI, which can make mistakes.
Is this a good recommendation for you?


