voltage and current sensing properly