Reading data from analog pin