 void loop(){
 
   if (timeStatus() == timeSet) {
-    if ( pollingLoopCounter == pollingInterval ){
+    if ( pollingLoopCounter == POLLING_INTERVAL ){
       pollData();
       pollingLoopCounter = 0;
     }
     pollingLoopCounter++;
-    if ( logLoopCounter == logInterval ){
+    if ( logLoopCounter == LOG_INTERVAL ){
       logData();
       logLoopCounter = 0;
     }

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

/****************************

COZIR czr(nss);

// We poll more often than we log, so we can register some extremes occurring during the logging intervals without having to log huge amounts of data.
const int LOG_INTERVAL = 60; // In seconds. This defines how much time is between each log. It's not accurate.
const byte MEASUREMENTS_PER_LOG = 10;
// Set measure and log intervals
const int POLLING_INTERVAL = LOG_INTERVAL / MEASUREMENTS_PER_LOG; // In seconds. This number can stay high. It takes about 30s for big changes even to be picked up as a small difference by the sensor.
byte pollingLoopCounter = 0;
byte logLoopCounter = 0;

// Special declaration for variables that are averaged with the Average library.
