// LM35 is connected to this PIN

#define sensorPin A2

void setup() {

  // Init serial at 9600 baud

  Serial.begin(9600);

}

void loop() {

  //Read Raw ADC Data

  int adcData = analogRead(sensorPin);

  // Convert that ADC Data into voltage

  float voltage = adcData * (5.0 / 1024.0);

  // Convert the voltage into temperature

  float temperature = voltage * 10;

  // Print the temperature data

  Serial.print("Temperature: ");

  Serial.print(temperature);

  Serial.println("*C");

  delay(800); // wait a second between readings

}
Analog ExampleBreakout