PID is not suitable for non-linear process like pH control. The way I usually do this is to use a ramp to drive the output up until the pH is within a certain range from the desired set-point say 0.1 or 0.2 pH, then stop the ramp and start it again only to stop when you get even nearer or reach the desired set-point.