Make the piecewise function more accurate at higher voltages.

I've added another equation to the piecewise function to make the reading more accurate at higher voltages. Work is shown in the description for the first patch of the two-patch set.