There is a while loop that iterates each time a line of data is received using ser.readline(). I had errors where the sensors occasionally sent invalid data, so I used the continue function to skip any iterations that either wasn't receiving a full line, the line had anything but 5 values, or if an…
There is a while loop that iterates each time a line of data is received using ser.readline(). I had errors where the sensors occasionally sent invalid data, so I used the continue function to skip any iterations that either wasn't receiving a full line, the line had anything but 5 values, or if any of the parts were blank