Calculate and Send the of Average Bio Data

I want to calculate the average of heart rate, respiration rate, calories, steps, and.. for last 1 minute and send it via makeWebRequest.

Should I define an array for each of them and read values every one second and calculate the averages before sending?
What is the best approach?