Problems with Custom Software Serial I/F

Thanks Delta G and Thanks Idahowalker.

Everything works now!
Your advice was correct!

The power supply to the PZEM017 has failed just at the wrong point in time.

Murphy was at work.