Fantastic! Thank you; I love the BMP180 as it's cheap and reliable but was struggling to get it to work with Python 3 (all other tutorials were using Python 2). I spent a frustrating day trying to convert an old Python script but it kept giving me problems when I was trying to send the results to a small OLED display driven by a Raspberry Pi Zero. It is now all working well. Thanks again.
I have executed the code getting the following error "Traceback (most recent call last): File "testBmp.py", line 3, in while True:temp, pressure, altitude = bmpsensor.readBmp180() File "/home/pi/Python_Code/bmpsensor.py", line 123, in readBmp180 altitude = 44330.0 * (1.0 - pow(pressure / 101325.0, (1.0/5.255))) ValueError: negative number cannot be raised to a fractional power " Can you help me to resolve?