Connect your NodeMCU to the PC and put below code to your Arduino IDE .
voidsetup(){Serial.begin(115200);//Set the baudrate to 115200,same as the software settings}voidloop(){Serial.println("Hello World!");//Print character string“Hello World!”on the serialdelay(5000);// Delay 5 second}
Choose corresponding board/port for your project,upload the sketch to the board.
After upload down,click Serial Monitor button,you will see the running result as below:
You will see the serial monitor output every 5 second.
Note: Make sure the baudrate is same as your sketch setting.