   maxlux = 65535 / (cpl * 3);
 
   lux = (TCS34725_R_Coef * float(r_comp) + TCS34725_G_Coef * float(g_comp) + TCS34725_B_Coef * float(b_comp)) / cpl;
-  ct = TCS34725_CT_Coef * float(b_comp) / float(r_comp) + TCS34725_CT_Offset;
+  if (lux > 0.1) // 2016-02-06 skip the CT calculation unless lux is greater than 0.1 
+    ct = TCS34725_CT_Coef * float(b_comp) / float(r_comp) + TCS34725_CT_Offset;
 }
 
 tcs34725 tcs;

  // update S1 registers
  while (s1 && (curMillis - S1StartTime > 5000)) {
    tcs.getData();
    m.setFloat(S1_Lux, tcs.lux);
    m.setFloat(S1_CT, tcs.ct);
    m.setFloat(S1_IR, tcs.ir);
    m.setFloat(S1_AGAINX, tcs.againx);

  Serial.print("S1 - TCS34725 ");
  Serial.println((s1 = tcs.begin()) ? "initialized" : "error");
  m.setFloat(S1_Available, (float) s1);
  m.setFloat(S1_Calibration, 1.0);

  // Initialize S2
  Serial.print("S2 - BME280 ");
