 
   //Calc windspdms_avg2m
   float temp = 0;
-  for(int i = 0 ; i < 120 ; i++)
+  for (int i = 0 ; i < 120 ; i++)
     temp += windspdavg[i];
   temp /= 120.0;
   windspdms_avg2m = temp;
 
   //Calc winddir_avg2m
   temp = 0; //Can't use winddir_avg2m because it's an int
-  for(int i = 0 ; i < 120 ; i++)
+  for (int i = 0 ; i < 120 ; i++)
     temp += winddiravg[i];
   temp /= 120;
   winddir_avg2m = temp;

//DEBUG
#include <MemoryFree.h>

#include <Wire.h> //I2C needed for sensors
#include "MPL3115A2.h" //Pressure sensor
#include "HTU21D.h" //Humidity sensor
#include <SoftwareSerial.h> //Needed for GPS
#include <TinyGPS++.h> //GPS parsing

#define DEBUG true

TinyGPSPlus gps;

//For SIMDUINO GPS/GSM from Simduino
static const int RXPin = 7, TXPin = 8; //GPS is attached to pin 7(TX from GPS) and pin 8(RX into GPS)
SoftwareSerial ss(RXPin, TXPin); 

MPL3115A2 myPressure; //Create an instance of the pressure sensor
HTU21D myHumidity; //Create an instance of the humidity sensor


  //Calc humidity
  humidity = myHumidity.readHumidity();
  if (myHumidity.readTemperature())
  {
    tempf = myHumidity.readTemperature();
  }
  else
  {
    //Calc tempf from pressure sensor
