Arduino Heat Sensor

heat?

I received this heat sensor yesterday. I’ll be reporting back on it.

Arduino UNO LM35 Linear Temperature Sensor

Plug it and your Arduino/Chinduino will be able to paly melodies.Make your electronics project to be art.
* Based on the semiconductor LM35 temperature sensor
* Can be used to detect ambient air temperature
* Sensitivity: 10mV per degree Celcius
* Functional range: -40 degree Celsius to 150 degree Celsius

Demo code:

void setup()
{
Serial.begin(9600);
}
void loop()
{
int val;
int dat;
val=analogRead(0); //temperature sensor attached on abalog input pin 0 .
dat=(125*val)>>8;
Serial.print(“Tep:”);
Serial.print(dat);
Serial.println(“C”);
delay(500);
}