LM35 temperature is far too high or low
- LM35
Stay safe: If the LM35 is hot to touch, unplug the power at once: it's in backwards.
Why it happens
- The formula
/ 9.3works only with the 1.1 V reference. - The sensor is the wrong way round: it gets hot and reads nonsense.
How to fix it
- Flat side facing you, legs down: left is 5V, middle is output, right is GND.
- With the normal 5 V use
analogRead(pin) * 500.0 / 1023. - Use
float, notint, for the answer.
It worked if: It shows about room temperature and rises when you hold it.
Related errors
Tutorials where it can happen
From how the part works. Follows the corrected formula in our LM35 lesson.
Didn't help? Search another error or ask us.

