Added array to continuously average the input pressure