The void loop() Function

Every Arduino Sketch has a void loop() section. The presence of the () at the end indicates this command is a function, a special routine that is executed when the code comes down to it.

This function will cause all the code between the { curly } brackets is executed, starting at the top line. When the code reaches the bottom, it jumps back to the top and repeats forever.

This is where we we put all the code we want to execute.

The word “void” in the front means that, as a function, there is no number returned by the function, it is “void” of a returned value.