Added logic to store data from breathing sensor

Added logic to continuously store data from the breathing sensor in an
array for analysis