       return;
   }
 
-  //addr ok, go get data  
+  //address ok
 
-  if ( addr[0] != 0x10) {//add to this for DS18B22 etc
+  if ( addr[0] != 0x10) {//todo: support for DS18B22
       Serial.print("-2 ");
       pa(addr);
       Serial.print("Device is not a DS18S20 family device.\n");
       return;
   }
 
-
-  // The DallasTemperature library can do all this work for you!
-
+  //sensor ok, get data
   ds.reset();
   ds.select(addr);
 //  ds.write(0x44,1);         // start conversion, with parasite power on at the end

  byte addr[8];
  
  if ( !ds.search(addr)) {
      Serial.print("0 No more addresses.\n");
      ds.reset_search();
      delay(250);
      int light = analogRead(A0);
      Serial.print("2 0 ");
      Serial.print(light,DEC);

  ds.select(addr);    
  ds.write(0xBE);         // Read Scratchpad

  for ( i = 0; i < 9; i++) {           // we need 9 bytes
    data[i] = ds.read();
//    Serial.print(data[i], HEX);//DEBUG
//    Serial.print(" ");
  }
  //check CRC
