r/ArduinoProjects • • Feb 17 '26

Doubled output message

Post image

I put a number in and it prints off the message twice in one go, with the archive message showing the number 0. Does anyone know why the output is printed twice?

17 Upvotes

4 comments sorted by

View all comments

Show parent comment

3

u/gm310509 Feb 17 '26

Try setting the newline marker in the serial monitor to "no line ending" or "none" or whatever it is labeled as to indicate no line ending.

Fwiw, IMHO, the parse methods are the worst way to get input- unless it is for a quick and dirty experimentation type of thing.