Analog Read

Thanks hazards thats basically what that code does. I thought I explained it alright so ill just figure it out on my own. Thanks for the replies