Trying to wrangle serial data from an Arduino

That’s the problem that I’m having with the code that @glv sent me, but I’m not sure that he’s thinking what I’m thinking about how I want to process the data.
I should have taken a video of the device while it was working.