Added function to get a set of readings from the ADC.