Read serial line per line in Processing
<p>I'm working on a simple demo application in <a href="http://processingjs.org/" rel="nofollow noreferrer">Processing</a>, this program should eventually show a chart or graph displaying my sensordata.</p>

<p>The problem I'm having is that I can't find any other method to read from the Serial port other then using <code>port.readString()</code>. This seems like the right way to do so, but this way it doesn't read the serial per line.</p>

<p>This is the current output I am getting, don't worry about the 'Writing to file' and 'Items written:' text. I know how to fix this and it's not a problem.</p>

<p><a href="https://i.stack.imgur.com/5MpCM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5MpCM.png" alt="enter image description here"></a></p>

<p>For the input of the program each line should consist of 12 values. Without having this it will get much harder to get a graph out of this data.</p>

<p>Is there any way to get the Serial data per line instead of 'random' linebreaks in the middle of numbers?</p>