#include <LiquidCrystal.h>
LiquidCrystal lcd ( 7,6,5,4,3,2);
void setup() {
// put your setup code here, to run once:
pinMode (A0,INPUT );
lcd.begin (16,2);
lcd.print (" the heat temp ....");
delay (1000);
lcd.clear();
}
void loop() {
// put your main code here, to run repeatedly:
float x= analogRead (A0 )*500/1024 ;
lcd.setCursor (6,0 );
lcd.print (x);
}
Loading
ds18b20
ds18b20