Greetings:
I have an Arduino Uno with an LM35DZ connected to A2. The LM35DZ is powered from the +5v of the Arduino board. The temperature reading is close to what I would expect, but when I hold the sensor between my fingers, the temperature calculation goes down, and when I release it, the calculation goes up, as if the voltage output is inversely proportional to temperature instead of directly proportional.
Is this supposed to be?
CurrentTempC = analogRead(A2) * 5.0 / 1024.0 * 100.0; //0.01v/C
CurrentTempF = round((CurrentTempC * 9.0 / 5.0) + 32.0);
if (digitalRead(XMT))
{
Serial.print("temp: ");
Serial.print(CurrentTempF);
Serial.println(" F");
}
Anyone have any ideas?