Hi @geofrancis - unfortunately adding the "if (reading< 1){reading=0;} " term doesnt solve the issue - atmospheric pressure still gives a negative depth value. It´s the same when I connect the bar30 but depth values are off by 9.800 cm H2O at atmospheric pressure. Atmospheric pressure needs to be set as zero as described by @McKey at the beginning of this topic.
Below is the latest version of the script.
MS5837-02BA_PWM.cpp (1.1 KB)