Hi! I've done a project using Atmega16 and Code Vision AVR. It works fine 'til a point, more specific when I am trying to display the adc value it shows a constant value and does not change at all when i am placing a resistance to be read. Hardware part worked fine.
I am attaching you the code of the project and the electrical scheme that i used from this video (https://www.youtube.com/watch?v=...).