Read the data from serial port