Smoothing out analog read value

Well, I actually took the code from an example sketch of using a thermistor and just combined it with my personal code for the digital clock. However, I cannot find the original sketch now ]:slight_smile: I tweaked it a fair amount, especially for the samples took and the delay. Yes, I know that that delay of 200us is pretty ridiculous, but I guess you can help?

And yes, I used the array because of the ready code but I can tweak it. The question is that it works for now and I want to find the other problem before optimizing this code.