Hello! I've been working with a Rasberry Pi zero for the past couple weeks, following a tutorial to interface with a Barometer sensor (the BMP 085,) and I've ran into a bit of a snag.
The sensor works, everything works electrically, I'm sure, that's more my background, but I'm not sure the code is set up right, or if the Pi can even tell something is connected.
When I try to run a sample code provided with files I didn't get from the tutorial (I found them on Adafruit's site) I get the following error:
Traceback (most recent call last):
File "simpletest.py", line 48, in <module>
print('Temp = {0:0.2f} *C'.format(sensor.read_temperature()))
File "build.bdist.linux-armv6l/egg/Adafruit_BMP/BMPO85.py", line 143, in read_
temperature
ZeroDivisionError: integer division or modulo by zero
I don't know any Python, just Java, so any help with interpreting this stuff and possibly fixing it would be wonderful, I'll leave links to Imgur images of my setup, with the third images containing my issue.
Here's a link to the tutorial:
https://tutorials-raspberrypi.com/raspberry-pi-and-i2c-air-pressure-sensor-bmp180/
https://imgur.com/mg8mWpx
This is the sensor.
https://imgur.com/YoDkQlo
This is the wiring setup, the blue wire on the top right will be replaced later, I just haven't had the chance to solder more pins onto the holes.
https://imgur.com/kctV6RP
This is me attempting to run a sample code provided to me from the tutorial, with the errors in question.