#include #include // LCD======================================================= //initialize the library with the numbers of the interface pins LiquidCrystal lcd(12, 11, 5, 4, 3, 2); #define LCD_WIDTH 20 #define LCD_HEIGHT 2 /* DS18S20 Temperature chip i/o */ OneWire ds(9); // on pin 9 #define MAX_DS1820_SENSORS 2 byte addr[MAX_DS1820_SENSORS][8]; void setup(void) { lcd.begin(LCD_WIDTH, LCD_HEIGHT,1); lcd.setCursor(0,0); lcd.print("DS1820 Test"); if (!ds.search(addr[0])) { lcd.setCursor(0,0); lcd.print("No more addresses."); ds.reset_search(); delay(250); return; } if ( !ds.search(addr[1])) { lcd.setCursor(0,0); lcd.print("No more addresses."); ds.reset_search(); delay(250); return; } } int HighByte, LowByte, TReading, SignBit, Tc_100, Whole, Fract; char buf[20]; void loop(void) { byte i, sensor; byte present = 0; byte data[12]; for (sensor=0;sensor