Serial is a mean of communication used in many connecters we use daily such as USB, Ethernet, Bluetooth, and many others. Serial communication is a great way to debug your code!
This method is used to initialize Serial communication at a given baud rate (or speed).
This is used to print a value in a different line. Which means that is equivalent to doing Serial.print()
with a "\n"
at the end.
To see the Serial values on the screen, all you have to do is click on the Serial Monitor button on the upper right corner of the IDE and make sure that 115200 is selected as the baud rate on the bottom of the Serial Monitor window, otherwise you won't be able to tell what is being printed on the screen. (The value should always be the same as the one set in your code)