 #define PHANT_DOMAIN        "data.sparkfun.com"
 #define PHANT_PAGE          "/input/zDA9M8dQlahOqo4bx5Dd"
 #define PHANT_PORT          80
-
-//
-//  Stuff required for Adafruit IO.
-//
 WiFiClient _wifiClient;
-#define AIO_SERVER      "io.adafruit.com"
-#define AIO_SERVERPORT  1883
-
-// Store the MQTT server, client ID, username, and password in flash memory.
-// This is required for using the Adafruit MQTT library.
-const char MQTT_SERVER[] PROGMEM = AIO_SERVER;
-// Set a unique MQTT client ID using the AIO key + the date and time the sketch
-// was compiled (so this should be unique across multiple devices for a user,
-// alternatively you can manually set this to a GUID or other random value).
-const char MQTT_CLIENTID[] PROGMEM = AIO_KEY __DATE__ __TIME__;
-const char MQTT_USERNAME[] PROGMEM = AIO_USERNAME;
-const char MQTT_PASSWORD[] PROGMEM = AIO_KEY;
-
-// Setup the MQTT client class by passing in the WiFi client and MQTT server and login details.
-Adafruit_MQTT_Client mqtt(&_wifiClient, MQTT_SERVER, AIO_SERVERPORT, MQTT_CLIENTID, MQTT_USERNAME, MQTT_PASSWORD);
-const char WINDSPEED_FEED[] PROGMEM = AIO_USERNAME "/feeds/windspeed";
-Adafruit_MQTT_Publish _windSpeedFeed = Adafruit_MQTT_Publish(&mqtt, WINDSPEED_FEED);
-
-const char WIND_DIRECTION[] PROGMEM = AIO_USERNAME "/feeds/winddirection";
-Adafruit_MQTT_Publish _windDirectionFeed = Adafruit_MQTT_Publish(&mqtt, WIND_DIRECTION);
-
-const char UVLIGHT_FEED[] PROGMEM = AIO_USERNAME "/feeds/uvlight";
-Adafruit_MQTT_Publish _uvLightFeed = Adafruit_MQTT_Publish(&mqtt, UVLIGHT_FEED);
-
-const char RAINFALL_FEED[] PROGMEM = AIO_USERNAME "/feeds/rainfall";
-Adafruit_MQTT_Publish _rainFallFeed = Adafruit_MQTT_Publish(&mqtt, RAINFALL_FEED);
-
-const char HUMIDITY_FEED[] PROGMEM = AIO_USERNAME "/feeds/humidity";
-Adafruit_MQTT_Publish _humidityFeed = Adafruit_MQTT_Publish(&mqtt, HUMIDITY_FEED);
-
-const char GROUND_TEMPERATURE_FEED[] PROGMEM = AIO_USERNAME "/feeds/groundTemperature";
-Adafruit_MQTT_Publish _groundTemperatureFeed = Adafruit_MQTT_Publish(&mqtt, GROUND_TEMPERATURE_FEED);
-
-const char DAYLIGHT_FEED[] PROGMEM = AIO_USERNAME "/feeds/daylight";
-Adafruit_MQTT_Publish _daylightFeed = Adafruit_MQTT_Publish(&mqtt, DAYLIGHT_FEED);
-
-const char AIR_TEMPERATURE_FEED[] PROGMEM = AIO_USERNAME "/feeds/airtemperature";
-Adafruit_MQTT_Publish _airTemperatureFeed = Adafruit_MQTT_Publish(&mqtt, AIR_TEMPERATURE_FEED);
-
-const char AIR_PRESSURE_FEED[] PROGMEM = AIO_USERNAME "/feeds/airpressure";
-Adafruit_MQTT_Publish _airPressureFeed = Adafruit_MQTT_Publish(&mqtt, AIR_PRESSURE_FEED);
 
 //
 //  Used for debugging, determine the output state of the onboard LED.

    //Debugger::LogUltravioletData(_sensors->GetUltravioletLightStrength());
    Debugger::LogRainfall(0, _pluviometerCountToday * 0.2794);
    //
    _message = "Wind speed pulse count: ";
    _message += itoa(_lastFiveSecondWindSpeedCount, _buffer, 10);
    Debugger::DebugMessage(_message);
    //
    _message = "Wind speed: ";
    _message += Debugger::FloatToAscii(_buffer, (_lastFiveSecondWindSpeedCount * 1.492) / 5, 2);
    _message += "mph";
    Debugger::DebugMessage(_message);
    //
    //  Now post to the Internet.
    //
    Debugger::DebugMessage("Posting to Internet.");
    PostDataToPhant();
    //MQTT_connect();
    //CheckMQTTLoggingResult(_airPressureFeed.publish(_sensors->GetAirPressure() / 100), "Air Pressure");
    //CheckMQTTLoggingResult(_airTemperatureFeed.publish(_sensors->GetAirTemperature()), "Air Temperature");
    //CheckMQTTLoggingResult(_daylightFeed.publish(_sensors->GetLuminosityReading()), "Daylight");
    //CheckMQTTLoggingResult(_groundTemperatureFeed.publish(_sensors->GetGroundTemperatureReading()), "Ground Temperature");
    //CheckMQTTLoggingResult(_humidityFeed.publish(_sensors->GetHumidity()), "Humidity");
    //CheckMQTTLoggingResult(_rainFallFeed.publish(_sensors->GetTotalRainfallToday()), "Rainfall");
    //CheckMQTTLoggingResult(_windSpeedFeed.publish(_sensors->GetWindSpeed()), "Wind Speed");
    //CheckMQTTLoggingResult(_windDirectionFeed.publish(_sensors->GetWindDirectionAsString()), "Wind Direction");
    //CheckMQTTLoggingResult(_uvLightFeed.publish(_sensors->GetUltravioletLightStrength()), "Ultraviolet Light");
    //Debugger::DebugMessage("Posting complete'");
    digitalWrite(PIN_ONBOARD_LED, LOW);
}


//
void setup()
{
    Serial.begin(115200);
    Serial.println();
    Serial.println();
    Wire.begin();
