Using serial monitor to debug code on Arduino targets

You can also use the serial monitor in the Arduino IDE to debug code on an Arduino target. There is ample information on using the serial monitor on the internet. This section uses a simple example to demonstrate how to use the Arduino IDE serial monitor to debug a faulty diagram. The diagram is supposed to generate code that, when loaded onto an Arduino Uno R3, causes the built-in LED to blink when a push-button sensor attached to the Uno is pressed.