All our pressure sensors are tunes to the operating range of atmospheric pressure measurement. Nevertheless it can be used to measure the height of a liquid like this: https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/How-to-measure-water-pressure-use-BME280/m-p/7558 As long as the liquid does not touch the sensor, there is no issue. However, since the part has a hole in it, I am afraid contact with strong chemicals would corrode the bonding pads over time, leading to an early sensor failure. You would need to carefully design your system to make sure corrosive liquids and gases do not come into contact with the part.
... View more