// display Sensor data on LCD: if ( !ds.search(addr)) { // No more Dallas chips present: Serial.print("No more addresses.\n"); ds.reset_search(); //delay(250); //return; // Check for family code which is not DS18B20: if ( addr[0] != 0x28) { Serial.print("Device is not a DS18B20 family device.\n"); return;

void writeTimeToScratchpad(byte* address){ //reset the bus ds.reset(); //select our sensor ds.select(address); //CONVERT T function call (44h) which puts the temperature into the scratchpad ds.write(0x44,1); //sleep a second for the write to take place delay(1000);}

void writeTimeToScratchpad(byte* address){ //reset the bus ds.reset(); //select our sensor ds.select(address); //CONVERT T function call (44h) which puts the temperature into the scratchpad ds.write(0x44,1); //sleep a second for the write to take place delay(1000);}