Not signing up for tinkercod.
Please draw and post a schematic of your experiment here.
We suggest printing the values as a check on the plausibility of your logic doing what you want. Have you literally not looked at what your analogRead statements are returning?
a7