 
 #include <Wire.h>
 #include <SoftwareSerial.h>
-#include "HTU21D.h"
+#include <HTU21D.h>
+#include <SFE_BMP180.h>
 
 const byte AIO_WIND_DIRECTION = A0;
 


SoftwareSerial xbeeSerial(DIO_XBEE_RX, DIO_XBEE_TX);
HTU21D htuSensor;

// Arduino //


  return windSpeed;
}

double getBmpSensorTemp()
{
  byte wait = bmpSensor.startTemperature();
  if(wait == 0) {
    return -1;
  }

  delay(wait);
  double temperature;
  wait = bmpSensor.getTemperature(temperature);
  if(wait == 0) {
    return -2;
  }

  return temperature;
}

double getPressure()
{
  byte wait = bmpSensor.startPressure(3);
  if(wait == 0) {
    return -10;
  }

  delay(wait);
  double pressure=0;
  double temp = getBmpSensorTemp();
  if(temp == 0) {
    return temp;
  }

  wait = bmpSensor.getPressure(pressure, temp);
  if(wait == 0) {
    return -20;
  }

  return bmpSensor.sealevel(pressure, ALTITUDE);
}

int averageAnalogRead(int pinToRead)
{
  byte numberOfReadings = 8;
