Brushed up voltage reading code.