Hello Messages on New Lines

How about having each "Hello!" message on a new line?  That would make the messages scroll down the Serial Monitor, instead of across it.  All you have to do is change print to println, which is short for ‘print line.’

Sketch prints "Hello" in the Serial Monitor on a new line each time.

  • Change Serial.print("Hello!") to Serial.println("Hello!").
  • Upload the modified sketch and watch it print each "Hello!" message on a new line.