I use a nodemcu for this sketch. You need to connect the smart meter with a RJ12 connector. This is the pinout to use Connect GND->GND on ESP, RTS->3.3V on ESP and RxD->any digital pin on ESP with a ...