How to read the value of each sensor from the Arduino

You can replace literal 0x0A w/ constant ENTER:
myPort.bufferUntil(ENTER)

BtW, I recommend taking a look at my Java Mode sketch example too:

2 Likes