U can increase the accuracy of a lm35 sensor connected to your arduino by this method

Please edit your post to include the actual code, using code tags. Pictures of code are useless, especially if they are incomplete.
For instructions on posting, please see the "How to get the best out of the forum" post.
Well, not with this sketch.
I don't see any switching to the more stable 1.1volt Aref in setup.
As a result, you won't have a better resolution (temp steps) than 0.5 degrees C.
Switching to 1.1volt Aref could give you a more stable readout with 0.1C resolution.
float mean = (val/1023.0) * 5000;
A 10-bit A/D has 1024 steps, not 1023.
5000 assumes a 5.000volt VCC, which it rarely is.
Especially not when the Arduino is on USB supply.
Leo..
I would always do the math and put the factor in , to prevent the chance of unseen rounding and so you get the maths precision sensible .
1024/5000 =0.2048