import serial serial = serial.Serial ("/dev/ttyAMA0", 115200) # Port and Baud rate line = serial.readline() # Blocks until EOL is received print(line)