@HazardsMind,
Yes I know. I was fixing the code while he was posting the one you refer to in Reply#68.
I posted the corrected code in Reply#70
Do you think he noticed that I'm using A0 instead of A15 because I only have six analog inputs ?
"Like two ships passing in the night...."
Can you believe we're up that on this post ?
Ps- The code I posted is ready to run. Just connect a some voltage to an analog pin and change the analogRead to the pin you are using. (which , probably he didn't do)