can anybody help with analog read function in this program

There are plenty of simple examples of how to read an analog input. Your code is rubbish.