Array problem

castorino88:
I am able to print the average, but the values are way off when and only when both sensors average arguments are in the code. When only one of the sensors average argument is in the code the values are correct. so I'm guessing it is an array problem?

You need to fix this before going on.

Create a simple sketch with just the function for calculating the averages.
Make sure it works, then you can use this function in your original sketch.