line = []
while True:
    for c in ser.read():
        line.append(c)
if c == '\n':
    print('Line: ' + line)
line = []
break
ser.close()
Python Serial: How to use the read or readline function to read more than 1 character at a time