The MS5611 is a new generation of high resolution altimetersensors from MEAS Switzerland withSPI and I2C bus interface. This barometric pressure sensoris optimized for altimeters and variometers with an altitude resolution of 10cm. etc.
More information about MS5611 is available in the datasheet
Driver
If you haven’t already done that, download BH drivers and demo code like this:
git clone https://github.com/bithollow/BH
cd BH/driver
Move to folder BH/driver/, you will find the baro driver: ms5611.cpp ms5611.h
Demo
baro example
Move to folder BH/demo/baro, compile and run the example
cd BH/demo/baro
make
./baro -h
The usage will show, you can refer to it.
Try to move the device down or up and see them change.