Smoothing out analog read value

Thank you very much. I am already tweaking the code with the second option, as well as optimizing it a little. Thanks again :slight_smile: