I ask about the myPort.available() > 0 check, because, to me, it seems silly that myPort.available() would return a number! Either there is data, or there isn’t, so in my mind this should be returning either true or false, AKA a boolean value. I haven’t bothered to check, of course - it’s entirely possible it’s returning a number so it can report things like the port being closed (or other error messages) using negative numbers.