setup() Runs Once
The startup block where you prepare pins and serial.
Two Blocks, Every Sketch
Every Arduino program is built from two functions. The first one is setup(), and getting it right makes everything else click. 🙂
Runs Exactly Once
The big idea: setup() runs a single time, right after your board powers on or resets. It never repeats on its own.