 // Include required libraries
 #include <Adafruit_CC3000.h> // wifi library
 #include <SPI.h> // how to talk to adafruit cc3300 board
-#if USE_DHT
-#include <DHT.h> // library to read DHT22 sensor
-#endif // USE_DHT
 #include <OneWire.h> // library to read DS 1-Wire sensors, like DS2401 and DS18B20
-#if USE_BMP
-#include <Wire.h>    // imports the wire library for talking over I2C to the BMP180
-#include <Adafruit_Sensor.h>  // generic sensor library
-#include "Adafruit_BMP085_U.h"  // import the Pressure Sensor Library for BMP180
-#endif // USE_BMP
 #if USE_BME 
 // Using I2C protocol
 //#include <Wire.h>    // imports the wire library for talking over I2C to the BMP180

	return present;
}

#if USE_DHT
void
measureDht22(void)
{
	gTemperatureDht = gDht.readTemperature();
	gHumidity = gDht.readHumidity();
	// Check if any reads failed and exit early (to try again).
	if (isnan(gTemperatureDht) || isnan(gHumidity)) {
		Serial.print("Time: ");
		gTimeNow = millis();
		//prints time since program started
		Serial.println(gTimeNow);
		Serial.println("Cannot read DHT sensor!");
		return;
	}
	Serial.print(F("H: "));
	Serial.print(gHumidity);
	Serial.print(F(" %\t"));
	Serial.print(F("T: "));
	Serial.print(gTemperatureDht);
	Serial.print(F(" *C "));
}
#endif // USE_DHT

#if USE_BMP
void
measureBmp180(void)
{
	/* Get a new sensor event */
	sensors_event_t event;
	float temperature;

	gBmp180.getEvent(&event);
	wdt_reset();
	/* Display the results (barometric pressure is measure in hPa) */
	if (event.pressure) {
		/* Display atmospheric pressue in hPa */
		Serial.print(F("Pressure:    "));
		Serial.print(event.pressure);
		Serial.print(F(" hPa => "));
		gPressure = (int)(event.pressure + 0.5);
		Serial.println(gPressure);

		//float temperature;
		gBmp180.getTemperature(&temperature);
		gTemperatureBmp = (int)(temperature + 0.5);
		Serial.print(F("Temperature: "));
		Serial.print(temperature);
		Serial.println(F(" C =>"));
		Serial.println(gTemperatureBmp);
	}
	else {
		Serial.println(F("BMP sensor error"));
	}
}
#endif // USE_BMP

#if USE_BME
void
measureBme280(void)

	Serial.begin(115200); // 9600
	Serial.println(F("\n\nInitializing Bee Station"));
	readSerialNumber();

#if USE_BME
	// Initialize BMP180 sensor
