completed working obstacle avoidance reading from dio_A0-2