can anybody help with analog read function in this program

Where in heavens name did you get that code ?
Forget modifying it and start again.