How to print an empty line on Serial Monitor

How to print an empty line on Serial Monitor of Arduino IDE?

Answer

There are two ways to print an empty line on Serial Monitor:

Let's see two examples to know the difference:

Example with Serial.print()

void setup() { Serial.begin(9600); Serial.println("START"); Serial.println(); // the 1st empty line Serial.print("\r\n"); // the 2nd empty line Serial.println("END"); } void loop() { }

The result on Serial Monitor

Newbiely | Arduino IDE 2.3.8
──
File
Edit
Sketch
Tools
Help
Arduino Uno
Newbiely.ino
···
8 Serial.println("Hello World!");
Output
Serial Monitor
Message (Enter to send message to 'Arduino Uno' on 'COM15')
New Line
9600 baud
START END
Ln 11, Col 1
Arduino Uno on COM15
2

Buy Arduino

1 × Arduino UNO Buy on Amazon
1 × USB 2.0 cable type A/B Buy on Amazon
1 × Jumper Wires Buy on Amazon
Disclosure: Some links in this section are Amazon affiliate links. If you make a purchase through these links, we may earn a commission at no extra cost to you.
Additionally, some links direct to products from our own brand, DIYables .

The Best Arduino Starter Kit

※ OUR MESSAGES