Barometric pressure sensor can typically be used for some altitude estimation, but of course the performance in your applications will highly depend on the environmental conditions (e.g. based on the weather outdoor, on doors/windows activity indoor, ...).
We would recommend reading the "Recommended modes of operation" chapter of BME280's datasheet to better understand the sensor's performance based on its settings and your application's requirements.
... View more