Needing better averaging code for pressure sensor

Nothing special. Call it 'i' if you want to. It is just a variable for the for-loop.