Thanks for the reply!
Finally i think i got it to work. The sensor was connected to A1 input but connected to 5V supply. I switched it to 3.3V and the sensor seems to work. When doing nothing the value that the sensor sends to my pc is arround 105 (± 1) and changes when i blow one of the port.
I have writen another code:
int p_pin = A0;
float a = 340.29; // Speed of sound at sea level in m/s
float p0 = 101.4; // Pressure at sea level in kPa
float offset = 0.3;
float sensitivity = 0.04;
sensorValue = analogRead(p_pin);
float voltage = (float) sensorValue / 1023.0 * 3.3;
float pressure = (voltage - offset) / sensitivity;
tas = sqrt(2*pressure*1000/p0)-4; // subtract 4 for callibration
tas = 0.0;
I have chosen the offset and sensitivity values to get tas = almost zero when air is not driven into the one of the sensor ports. My next question is if i did the code properly to get the data from the sensor and transform it into what i want to get from it(the dynamic pressure) ? Also i could not test the sensor in motion to see if tas is correct, i just blow it and get a value arround 5, 6 m/s which in my opinion is a correct value for human blowing speed.