from machine import UART from time import sleep uart = UART(0, 9600) uart.init(9600, bits=8, parity=None, stop=1) while(1): x = uart.readline() print(x) sleep(0.1)