Unable to receive serial data from Arduino

Yes, now it works! I tried the loop you suggested, then the analogRead, and it prints what is expected. Thanks a lot for your help! I had fiddled a bit with the various ways of sending and receiving data, but probably not in the right combination. Now my question is: how do I deal with the 10 bits value coming from the analog input? How can I receive it at the Processing side and convert it in a integer value?

1 Like