Here’s a short Wiring/Arduino program that waits for a connection to the microcontroller via a Lantronix device, and sends out an analog reading when it’s got a connection.
The Lantronix device is in connectMode D4, and the TX is connected to the Arduino’s RX and vice versa.