How to import the libraries needed by BMP085?

I guess you are trying to use that library on an Electron, but there B0~B5 are already declared as pins and hence the use of these variables in the library cause issues with compiling.
That’s ann issue to be addressed by the library contributor or you need to fork the lib and repair that yourself by renaming these variables.

BTW, stating your target device and target firmware version would always be helpful :wink:


The reason for the wrong readings might be that not all occurences of B0~B5 were replaced in all calculations and hence the wrong values were used, since the original B0~B5 do still exist but now stand for the pin numbers and not the expected values.

Thanks ScruffR. You were right. Just had to change the pins I was using.