 /****************************/
 void setup(){
   Serial.begin(9600); // Start communication over serial port.
-  //setSyncProvider( requestSync );  //set function to call when sync required
   Serial.println("\r\n> Please enter the current Unix time, for instance: 1420070400\r\n");// You can find the current time stamp on unixtimestamp.com
 }
 

/*
  Log environmental data to CSV
 
  This sketch sents values temperature, humidity, CO2 and the digital filter setting to the serial port in CSV format.
  After uploading, open the serial monitor (ctrl+shift+m) and follow instructions. The CSV data can be copied and pasted into a spreadsheet.
  In order to keep memory and storage consumption low, but not average out extremes, the sketch polls more frequently than it logs.
  As the log is kept in RAM, only a around 9 data points can be recorded. As opening the serial monitor resets the Arduino, logs can only be read if the computer is connected the whole logging period. Until I have a datalogger shield, it's something at least.
  When memory is full, logs are no longer saved. Some messy last entries may show up.

  created 13 Feb 2015
  by Koos Looijesteijn
 
  This code is in the public domain.
 	 
  Upon first use, the sensor must be calibrated. If you don't get proper readings, do this:
  1) Upload the SetToPolling sketch - Because the library is made for polling.
  2) Move the sensor to an area with fresh air
  3) Upload the Calibrate sketch
  4) Upload this sketch again.
  
  For logging in Fahrenheit, just replace all instances of 'Celsius'.
*/

}
// Logging of measurements
void logData(){
  // Give feedback when first log is made and can be requsted.
  if (sLog.length() == 0){
    Serial.println("> Type 'csv' to get the log data.\r\n");
  }
  String sTime = getTimeString();
  // Get for temperature, humidity and CO2 the lowest, average and highest measurements of the last logging interval:
  String sTemperatureMin = floatToString( temperatures.minimum() );
