Separate-Ground voltage measurement

This would be the simplest non-inverting, active low circuit:
schematic.png
TX high: opto off, output pulled high.
TX low: opto on, output pulled low.