 
    //update until we hit the specified number of minutes to run
 
-#if DEBUG
-  Serial.print("clock.isAlarm1() " + String(clock.isAlarm1(false)) + " && (timeCount < (timeToSleep - 1)) : ");
-  Serial.println(clock.isAlarm1(false) && (timeCount < (timeToSleep - 1)));
-#endif
-
  //check if the desired number of minutes to sleep has elapsed
    if(clock.isAlarm1(false) && (timeCount < (timeToSleep - 1))){
       timeCount++;

  sleep_disable();
}

/*Generate and print UUID to disk
 * https://github.com/sirleech/TrueRandom
 */
void print_UUID_To_Disk() {
  File dataFile = SD.open(filename, FILE_WRITE);

  // if the file is available, write to it:
  if (dataFile) {
    delay(50);
    byte uuidNumber[16];
    TrueRandom.uuid(uuidNumber);
    
    for (int i=0; i<16; i++) {
      if (i==4) dataFile.print("-");
      if (i==6) dataFile.print("-");
      if (i==8) dataFile.print("-");
      if (i==10) dataFile.print("-");
      
      int topDigit = uuidNumber[i] >> 4;
      int bottomDigit = uuidNumber[i] & 0x0f;
      // Print high hex digit
#if DEBUG
      Serial.print( "0123456789ABCDEF"[topDigit]);
      Serial.print("0123456789ABCDEF"[bottomDigit]);
#endif
      dataFile.print( "0123456789ABCDEF"[topDigit] );
      // Low hex digit
      dataFile.print( "0123456789ABCDEF"[bottomDigit] );
    }
#if DEBUG
    Serial.println();
#endif

    dataFile.close();
  }
}

/*
 * Initialize the clock time, the alarm for the clock,
 * and the interrupt associated with it which is used

int sum = 0;                    // sum of samples taken
unsigned int sample_count = 0; // current sample number
float voltage = 0.0;            // calculated voltage
int volt_pin = A3;

// Convert normal decimal numbers to binary coded decimal
byte decToBcd(byte val)
