Averaging Values in For Loop

  1. //get the average
    (all values added together) + number of sensor values (step 2 from above)

Correction: 3. //get the average
(all values added together) ÷ number of sensor values (step 2 from above)