const int em=A0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int temp;
float cel;
temp=analogRead(A0);
cel = (temp*4.88);
cel = (cel/10);
Serial.print(cel);
Serial.print("*c");
Serial.println();
delay(100);
}
Loading
ds18b20
ds18b20