Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By HamzaHajeir
#68310 Hi
There's an Arduino library for a sensor using serial communication (PZEM-004T) , then someone developed a code reads the sensor for ESP8266 NARODMON .

Arduino library link : https://github.com/olehs/PZEM004T
Developed code (for NARODMON) : https://www.youtube.com/watch?v=MQjcbAkxpGo
Download link (rar file) : https://vk.com/doc93686786_439324628?ha ... 9e21554912


Now ,how can I change the code to be compatible for NodeMCU ?
User avatar
By Millstone
#68454 It's plug and play in case you use the arduino ide.

Two options:

-PZEM004T(uint8_t receivePin, uint8_t transmitPin) -->define your desired softserial pins
-PZEM004T(HardwareSerial *port)--> use your hardware serialport

Have fun. no liability.