sample code for a ADC (Analog To Digital Conversion) for wall follower design in embedded systems lecture