Hi Tao,
Please take a look at this thread with a similar topic.
Have you considered using the MPL3115A2? It allows direct altitude reading (almost no additional computing needed) over the I2C interface and offers an altitude resolution down to 30 cm (with max oversampling enabled) with a relative accuracy of ±0.1 kPa (±8 m). For more information please refer to the AN4528 and the example code is available here.
Regards,
Tomas
PS: If my answer helps to solve your question, please mark it as "Correct". Thank you.