Sorry i didnt get you..
i tried my program running on my microcontroller it gives me junk values and its not comparing the values (may be i have not mentioned on my program to compute the values for minimum and maximum values and update )
Can anyone help me how i can improve my program to work and read the values