Storing sensor data in an array

Step through your logic here. What value does I have at the beginning of the "while()? Where do you set it? Then in the following code you use I again in another loop that is imbedded in the first loop. Why?

Paul