Hi guys, Im trying to set up LM35DZ temperature sensor from my starter kit with arduino uno, but Im getting temperatures which are 2.5 degrees C off.
I looked for anything on this forum and nobody seems to have this problem. I use simple connection like in here
I have just the sensor connected to ground, 5V source from arduino and A0 for analog reading. I power arduino with USB and measured the output like this as 5.02V. I calculate the temperature as temp = (analogread/1024) * 500
I compare the reading with standard room temperature meter ( I hope these things are not so off).
I read the datasheet of LM35 and they guarantee 3/4 degree accuracy, so Im not in that for sure. What could be wrong?