title: Floor Counter using the Barometer of the phone with Android
body: <p>I'm trying to realize an Android application which tells the user if he is going downstairs or upstairs by measuring the pressure of different floors using the barometer of the phone.</p>
  
  <p>My idea was to write a step counter to scan if the user is walking and check, every N steps, the pressure at step 1 and at step N, if the pressure changes by a threshold of 0.3 mbar I can tell that the floor is changed (I made some trials to find the value of 0.3).<br>
  The problem is that this method works if the first step is at the beginning of the stair and the last is in another floor, otherwise the barometer will be not able to recognize the difference in pressure between two floors.
  Could someone suggest me an idea to solve this problem? </p>
  
  <p>P.S. I'm forced to use the barometer, so I have to use this sensor.</p>