# Pzem-004t via EspEasy

**URL:** <https://discourse.nodered.org/t/pzem-004t-via-espeasy/82580>\
**Category:** Hardware\
**Created:** [3 November 2023 13:37 UTC](https://discourse.nodered.org/t/pzem-004t-via-espeasy/82580 "2023-11-03T13:37:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [15 November 2023 07:15 UTC](https://discourse.nodered.org/t/pzem-004t-via-espeasy/82580/4 "2023-11-15T07:15:08Z")

</div>

I have a PZEM-004T connected to a Wemos D1 Mini (ESP8266) flashed with Tasmota that reports readings via MQTT to Node-RED. Here's a link to a thread about interfacing the device.

> [@Need to write one function that will return 3 values](https://discourse.nodered.org/t/need-to-write-one-function-that-will-return-3-values/30931/12):
>
> This is the module I used PZEM-04 0-100A from BangGood with a serial connection to Wemos. I cut the USB connector off the end of the lead and fed the Tx and Rx signals through level shifters as the PZEM-04 used 5V logic and the Wemos is 3v3. It took quite a lot of trail-and-error to find the best pins to use on the Wemos with Tasmota. I can draw out the circuit/schematic over the weekend if you need it.

Couple of things to note are the need for level shifters and make sure Tx & Rx are connected correctly.  
i.e. Tx connects to Rx, and Rx to Tx

---

_[View the full topic](https://discourse.nodered.org/t/pzem-004t-via-espeasy/82580)._
