Question: what is the difference between the setup and loop functions?
Answer: While the setup() function sets your Arduino up, the loop() function... loops! This is where the bulk of your Arduino sketch is executed.