When put return in while loop the loop will stop How to fix it?
ser = serial.Serial( port=\'COM5\', baudrate = 9600, timeout=1) while 1: x=str(se
u can try this one
while 1: x=str(ser.readline()) x = re.findall("\d+\.\d+", x) x = float(x[0]) return x