full working code for reading out sensor data of 1 barometer