#!/usr/bin/env python


import time
import serial


ser = serial.Serial(
	port='/dev/ttyUSB0',
	baudrate = 115200,
	parity=serial.PARITY_NONE,
	stopbits=serial.STOPBITS_ONE,
	bytesize=serial.EIGHTBITS,
	timeout=1
)

while True:
	ready_bytes = ser.inWaiting()
	if ready_bytes > 0:
		x = ser.readline()
		print(x)
