   out.print(getWindDirection());
   out.print("&t=");
   out.print(htuSensor.readTemperature());
+  out.print("&p=");
+  out.print(getPressure());
   out.print("&h=");
   out.print(htuSensor.readHumidity());
+  out.println("]");
+}
+
+void sendError(Stream &out, String error) 
+{
+  out.print("[e=");
+  out.print(error);
   out.println("]");
 }
 


#include <Wire.h>
#include <SoftwareSerial.h>
#include "HTU21D.h"

const byte AIO_WIND_DIRECTION = A0;



//

const float ALTITUDE = 254.8;

const byte BOUNCE_DELAY_MS = 10;
const int UPDATE_RATE_MS = 1000;
const byte WIND_SPEED_SAMPLE_COUNT = 5;
