The hardware was assembled by connecting the Arduino UNO R4 WiFi, the PZEM 004T, the current transformer, and the OLED ...
It's a solved problem, but I actually prefer a simple web UI.