The simple code and monitor output screen is below.... if you see there is an extra "This just in..." print. Why is that ?
Most likely the serial data has a Linefeed and/or a Carriage Return after it
If the source of the data is the Serial monitor then what is Line ending set to ?
You might want to look at this How to get the best out of this forum before you proceed any further.
It tells you how to post code correctly using code tags. Never post code as an image, it is next to useless to do this. We are not going to type this in, and we can't run it from an image.
Because you put it in when you wrote the code.
Did you write this code? If not where did you get it from?
You are spot on ! Yes I overlooked the "New Line" option in the Serial Monitor.
Thanks !!
I am glad that I could help
No arguments about the posting code advice. Agreed.
But in this context, the issue is conveyed in a snap with the snap shot of code + output.
And finally I did not write the code. Copied it from this forum post on Serial Basics.
And in this context this wastes a lot of space for the forum storing an image instead of a few lines of code.
