   }
   //else Serial.println("error starting temperature measurement\n");
 }
-/*//////////////////////////////////////////////////////////////////
-SparkFun Luminosity Sensor Breakout - TSL2561
-//////////////////////////////////////////////////////////////////*/
+/**
+ * Reads the Luminosity sensor TSL2561 and calculates the Lux units
+ */
 float lightRead(){
   boolean gain;     // Gain setting, 0 = X1, 1 = X16;
   unsigned int ms;  // Integration ("shutter") time in milliseconds


    Serial.print(" lux: ");
    Serial.print(lux);
    if (good) Serial.println(" (good)"); else Serial.println(" (BAD)");
  }
}
/*//////////////////////////////////////////////////////////////////
 RTC based on http://bildr.org/2011/03/ds1307-arduino/
//////////////////////////////////////////////////////////////////*/
/**
 * Convert binary coded decimal to normal decimal numbers
 * @param  val byte value to be converteted


    myFile.println(" ");
    myFile.close();
  }
  digitalWrite(WIFIPIN,LOW); //active wifishield
  digitalWrite(SDPIN,HIGH); //inactive SD

}
/**
 * read  MQ-131 O3 low concentration sensor
 * @return [description]
 */
float mq131Read(){
  int sensorValue = analogRead(0);       // read analog input pin 0
  Serial.println(sensorValue, DEC);  // prints the value read
