 //I don't like the way this function is written but Arduino doesn't support floats under sprintf
 void printWeather()
 {
+      digitalWrite(STAT2, HIGH); //Turn off stat LED
+
   //calcWeather(); //Go calc all the various sensors
 //Calculates each of the variables that wunderground is expecting
 //void calcWeather()

      seconds = 0;

      if(++minutes % 60 == 0) minutes = 0;
      if(++minutes_5m % 5 == 0) Rainindi = 0;
      if(minutes_5m % 5 == 0) minutes_5m = 0;
      if(++minutes_10m % 10 == 0) minutes_10m = 0;


float get_wind_speed()
{
  float deltaTime = millis() - lastWindCheck; //750ms
  deltaTime /= 1000.0; //Convert to seconds
  float windSpeed = (float)windClicks / deltaTime; //3 / 0.750s = 4
  windClicks = 0; //Reset and start watching for new wind
  lastWindCheck = millis();
  //windSpeed *= 1.492; //4 * 1.492 = 5.968MPH
  return(windSpeed);
}

