Initialize serial device
import serial
#Serial takes two parameters: serial device and baudrate
ser = serial.Serial('/dev/ttyUSB0', 9600)
to read single byte from serial device
data = ser.read()
to read given number of bytes from the serial device
data = ser.read(size=5)
to read one li...