/*This program calculate the temperature with sensor LM35*/ float tempC; int LM35 = 0; void setup() { Serial.begin(9600); } void loop() { tempC = analogRead(LM35); tempC = (5.0 * tempC * 100.0)/1024.0; Serial.print(tempC); Serial.print("\n"); delay(1000); }