added average for voltage and current to remove noise issues