LM35

 RM 7.00
Precision Centigrade Temperature Sensors :
+ Calibrated Directly in ° Celsius (Centigrade)
+ Linear +10mV/°C Scale Factor
+ 0.5°C Ensured Accuracy (at +25°C)
+ Rated for Full −55°C to +150°C Range
+ Suitable for Remote Applications
+ Operates from 4 to 30V
+ Less than 60μA Current Drain
+ Low Self-Heating, 0.08°C in Still Air
+ Nonlinearity Only ±¼°C Typical
+ Low Impedance Output, 0.1Ω for 1mA Load

Datasheet: LM35 

Pin Assignment:


Package included : LM35 x 1 unit

Sample Code:
int val; int tempPin = 1; void setup() { Serial.begin(9600); } void loop() { val = analogRead(tempPin); float mv = ( val/1024.0)*5000; float cel = mv/10; float farh = (cel*9)/5 + 32; Serial.print("TEMPRATURE = "); Serial.print(cel); Serial.print("*C"); Serial.println(); delay(1000); /* uncomment this to get temperature in farenhite Serial.print("TEMPRATURE = "); Serial.print(farh); Serial.print("*F"); Serial.println(); */ }