Sensirion SDP610 in Educational Wind Tunnel.

Hi all,

I am doing a project about measuring drag and lift forces on a circular cylinder placed inside a wind tunnel. To do this my university had bought SDP610 differential pressure sensors. This kind of sensors use I2C protocol to transfer data. I am struggling with the code trying to obtain reliable results. I had tried different methods and the one with better results is attached below (SDP611-single.ino). I wonder if someone could help me to simplify it using SDPxx library. I have written a short example using this library and it works but I am pretty sure it does not right. The example is the next:

#include <Wire.h>
#include <SDP6xx.h>

void setup()
{
  Wire.begin(); 
  Serial.begin(115200);
  
}


void loop()
{
   Serial.println(SDP6xx.readPA());
   delay(1000);
}

I hope anyone can help me, Thanks.

SDP6xx.cpp (4.28 KB)

SDP6xx.h (2.88 KB)

SPD611-single.ino (5.18 KB)

What is "unreliable" results?
I2C is simply a protocol for transferring data.

Hi,
I have a similar project using the exact same code SDP6xx.readPA() as you have used above we are getting an output value of 65534 which is 2^16 when the senor should be reading 0 . do you know how to convert this number to a pressure in pascals??