user85699: I have tired Arduino smoothing example but mine analog value are not staying constant even when I don't rotate the potentiometer. I am mapping the values from 0 -> 1024 to 0-> 100. I have tried exponential filter also but the result is same.
Values change 2 to 3 point mostly. Any idea how can I make the readings much more smooth.

user20245: There will always be noise in the output an Analog to Digital Converter (ADC).

An ADC converts a continuous-time and continuous-amplitude analog
signal to a discrete-time and discrete-amplitude digital signal. The
conversion involves quantization of the input, so it necessarily
introduces a small amount of error or noise.

All one can do is mitigate the noise.  Consider cleaning up your power supply.  Make sure your voltage reference is well filtered.  Inspect these power rails with an oscilloscope if one is available.  Also consider keeping all wiring as short as possible and avoid using Bread Boards as they tend to introduce noise in sensitive circuits.
When using exponential averaging consider the equation / code can be modified easily to accommodate very noisy signals at the sacrifice of responsiveness.  If the application can tolerate the delay, the decay of historical samples can be lowered such that what most consider noise can be filtered out.  One can do this by picking very small values for alpha in the following equation found on wikipedia.org:


85699: <p>I have tired Arduino smoothing example but mine analog value are not staying constant even when I don't rotate the potentiometer. I am mapping the values from 0 -&gt; 1024 to 0-&gt; 100. I have tried exponential filter also but the result is same.</p>
<p>Values change 2 to 3 point mostly. Any idea how can I make the readings much more smooth.</p>
 20245: <p>There will always be noise in the output an <a href="https://en.wikipedia.org/wiki/Analog-to-digital_converter" rel="nofollow noreferrer">Analog to Digital Converter (ADC)</a>.</p>
<blockquote>
<p>An ADC converts a continuous-time and continuous-amplitude analog
signal to a discrete-time and discrete-amplitude digital signal. The
conversion involves quantization of the input, so it necessarily
introduces a small amount of error or noise.</p>
</blockquote>
<p>All one can do is mitigate the noise.  Consider cleaning up your power supply.  Make sure your voltage reference is well filtered.  Inspect these power rails with an oscilloscope if one is available.  Also consider keeping all wiring as short as possible and avoid using <a href="https://www.adafruit.com/product/239" rel="nofollow noreferrer">Bread Boards</a> as they tend to introduce noise in sensitive circuits.</p>
<p>When using <a href="https://en.wikipedia.org/wiki/Exponential_smoothing" rel="nofollow noreferrer">exponential averaging</a> consider the equation / code can be modified easily to accommodate very noisy signals at the sacrifice of responsiveness.  If the application can tolerate the delay, the decay of historical samples can be lowered such that what most consider noise can be filtered out.  One can do this by picking very small values for alpha in the following equation found on wikipedia.org:</p>
<p><a href="https://i.stack.imgur.com/qLMuv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qLMuv.jpg" alt="enter image description here" /></a></p>
