That is better than reading the data before checking if data is available.
Do yourself a favor and look at the serial input basics tutorial.
That is better than reading the data before checking if data is available.
Do yourself a favor and look at the serial input basics tutorial.