Serial Printing to Processing

I take it from your response that you have no intention of putting any thought into this matter.

You have two problems in your code...

  1. You're sending text characters but trying to read a binary value. Pick which one you want to use. I suggest text.

  2. You provide no reliable method of differentiating between two values. I suggest a square brackets around the value.

Okay I get what you're saying here (and thanks a lot for helping). So if instead of sending in float values like 0.0001.2213.222 ....

I instead send [0.001] [1.2213] as strings?

Then from processing break up the string and convert the number back to float?