Read analog pin

Please post a program and a schematic of your circuit that illustrates the problem.