testing taking averages for voltage and current readings