   if(GOT_HUMID_SENSOR)
   dht.begin();    // Start the humidity and air temperature sensor
 
-  if(GOT_LIGHT_SENSOR){
   // You can change the gain of the light sensor on the fly, to adapt to brighter/dimmer light situations
   //tsl.setGain(TSL2591_GAIN_LOW);    // 1x gain (bright light)
   tsl.setGain(TSL2591_GAIN_MED);      // 25x gain

    updateSensorData(monitorData);
    delay(100);
    // ledOff();
    postSensorData(monitorData);
  } 
  if(loopCounter == TICK_WIFI_DEBUG) {
    Serial.print("SSID: "); Serial.print(apSSID);

  //tsl.setTiming(TSL2591_INTEGRATIONTIME_500MS);
  //tsl.setTiming(TSL2591_INTEGRATIONTIME_600MS);  // longest integration time (dim light)

  if (tsl.begin())
  {
    Serial.println("Found a Light sensor");
    GOT_LIGHT_SENSOR = true;
  }
}
void updateSensorData(monitor_t *monitorData) {
