added function to read all analog inputs at once