Hi everyone, I am currently using an Arduino Uno with a ms5607 breakout board to read altitude and pressure values, however, I can't figure out why the sensor sends me garbage data(I assume it is anyway). I tried some codes I found and they give me weird readings.
I connected my Arduino to my ms5607 like so:
gnd to gnd
vin to 5v
ps to 5v
scl to A5
sda to A4
I tried several variations of this same code and other programs altogether but this one sums up what I want(temperature is not necessary but is a nice +).
I know that the altitude is off since on : Find the Elevation on a Map I am on approx 120 feet higher than sea level.
I tried changing the int to long as suggested here : Arduino Forum to no success.
Check your device is actually communicating using I2C. Run the I2C scanner sketch and see if it responds.
Check your device is actually initialized properly.
I am not familiar with your particular device, but all these barometric devices work similarly. They return
some numbers from their actual measurement device, which then get processed using some formulas and
some constants embedded in the device. You need to check this process, step by step.
I've had several similar devices fail, and generate rubbish like what you have. They don't seem to be
very reliable.
I checked and it is communicating using I2C, I ran both the I2C scanner(device on 0x76) and my sketch without the 5v and it shows different value which lead me to think it is not broken. Also, the results are different from day to day, today I get :