About Serial.available() and if Commands

The "if" statement is executed a microsecond or so after msg1 is sent off to be printed.

How many characters do you think might be in the serial input buffer, for serialParseFloat() to interpret?

I recommend the Serial Input Basics tutorial.

1 Like