Make the array index a static variable, so it is NOT initialized to 0 every time loop() iterates.
Read the available data WITHOUT delay().
Only use the data when i is 11. Reset i to 0 after using the data.
Make the array index a static variable, so it is NOT initialized to 0 every time loop() iterates.
Read the available data WITHOUT delay().
Only use the data when i is 11. Reset i to 0 after using the data.