Serial.read() gives null value from Arduino and or the port is not open on processing side

Comment out this line from draw:

data = myPort.readString();

Make sure all reading is done inside the “if available” block.

1 Like