Log and plot data read from a serial port