     configureSlot(i);
   }
   tlc.begin();
-
-  programmingMode = false;
+  
+  if (!ds.search(addr)) {
+    ds.reset_search();
+    for (uint8_t i = 0; i < 7 ; i++) {
+      addr[i] = 0x00;
+    }
+    DEBUGLN("No ds18s20 found for UID");
+  } 
+#ifdef DEBUG_OUTPUT
+    else {
+    DEBUG("UID: ");
+    for (uint8_t i = 0; i < 7; i++) {
+      Serial.print(i);
+      Serial.print(addr[i], HEX);
+    }
+    DEBUGLN(".");
+  }    
+#endif
+
 }
 
 void loop() {

        DEBUG("\n");

        return LNCV_LACK_OK;
		  } else if (lncvAddress == 1023) {
        lncvValue = VERSION;
        return LNCV_LACK_OK;
      } else if (lncvAddress == 1024) {

LocoNetCVClass lnCV;

boolean programmingMode;

OneWire ds(A3);
byte addr[8];

#define LOCONET_TX_PIN 5

