0PricingLogin
Arduino & IoT Academy · Lesson

loop() Runs Forever

The heartbeat that repeats your logic endlessly.

The Heartbeat

After setup finishes, the second block takes over. Meet loop(), the part of your sketch that never stops running. 🔁

Runs Over and Over

The key idea: loop() repeats endlessly. The board runs it, reaches the bottom, then jumps straight back to the top.

All lessons in this course

  1. setup() Runs Once
  2. loop() Runs Forever
  3. Comments & Clean Sketches
  4. Compile Errors & How to Read Them
← Back to Arduino & IoT Academy