title: Calculating wind speed with pitot tube using arduino
body: <p>Trying to calculate the wind speed using a pitot tube MPXV7002DP.<br>
  We are getting the dynamic pressure from the sensor and then applying Bernoulli's equation:</p>
  
  <pre><code>pd = dynamic pressure
  air density = 1.225kg/m^3
  windspeed = sqrt(2*Pd/air density)
  </code></pre>
  
  <p>We are using an Arduino UNO.</p>
  
  <p>We think that there is problem with reading the pressure from the sensor.</p>
  
  <p>We don't know how to get the correct values.</p>
  
  <pre class="lang-cpp prettyprint-override"><code>#include &lt;SoftwareSerial.h&gt;
  
  float Output=0;
  void setup() {
    Serial.begin(9600);
  }
  void loop() {  
     float sensorValue = analogRead(A0); 
     output=sqrt((2*sensorValue)/1.225);
     Serial.println(output);
     Serial.print("m/s");
     delay(100);
  }
  </code></pre>