ReadAndAverage function for pots