   if ( !ds.search(addr)) {
     //no more sensors on chain, reset search
     ds.reset_search();
+#if DEBUG
     Serial.println("Cannot find an address for temp sensor");
+#endif
     return -1000;
   }
 
   if ( OneWire::crc8( addr, 7) != addr[7]) {
+#if DEBUG    
     Serial.println("CRC is not valid!");
+#endif
     return -1001;
   }
 
   if ( addr[0] != 0x10 && addr[0] != 0x28) {
+#if DEBUG    
     Serial.print("Device is not recognized");
+#endif
     return -1002;
   }
 
   ds.reset();
   ds.select(addr);
   ds.write(0x44, 1); // start conversion, with parasite power on at the end
-
+  
   byte present = ds.reset();
   ds.select(addr);
   ds.write(0xBE); // Read Scratchpad


  // see if the card is present and can be initialized:
  if (!SD.begin(chipSelect)) {
    Serial.println("Card failed, or not present");
    // don't do anything more:
    return;
  }

  // retrieve data from DS3231
  readDS3231time(&second, &minute, &hour, &dayOfWeek, &dayOfMonth, &month,
  &year);
#if DEBUG
  // print to the serial port:
  //yyyy-mm-dd hh:mm:ss
  Serial.print(year);
