The short answer
pH Measurement
pH is measured by the voltage between a glass electrode, which develops a potential proportional to hydrogen ion activity, and a reference electrode that provides a stable potential through a porous junction. The signal is about 59 millivolts per pH unit at 25 °C and changes with temperature, so every measurement is temperature compensated. The sensor is calibrated against two buffers, drifts as the glass ages and the reference junction fouls or its electrolyte depletes, and is the most maintenance-intensive analytical measurement in a typical plant.
Key points
- The measurement is a voltage: 59.16 mV per pH unit at 25 °C, zero at pH 7.
- The reference electrode is the usual failure. Fouled junctions and depleted electrolyte cause drift and slow response.
- Two-point calibration with fresh buffers, bracketing the process pH.
- Slope and offset from the calibration tell you the sensor condition. Track them.
- Temperature compensation corrects the electrode, not the chemistry. A pH at 10 °C is a different number at 25 °C.
How the sensor works
A pH sensor is a small battery whose voltage depends on the hydrogen ion activity of the solution. The glass electrode is a bulb of special glass that develops a potential across its surface in proportion to pH, and the reference electrode, usually silver and silver chloride in a potassium chloride electrolyte, provides a fixed potential against which the glass is measured. The two connect through the solution: the glass by its surface, the reference through a porous junction that lets ions pass while keeping the electrolyte in.
E = E₀ − (2.303 RT / F) × (pH − 7) ≈ −59.16 mV × (pH − 7) at 25 °C
- E = measured voltage between the glass and reference electrodes
- E₀ = the sensor offset, ideally zero at pH 7
- 2.303 RT / F = the Nernst slope, 59.16 mV per pH unit at 25 °C and 54.2 mV at 0 °C
The slope depends on absolute temperature, which is why every pH sensor has a temperature element and every transmitter compensates. The compensation corrects the electrode response to the temperature; it does not correct for the fact that the pH of the water itself changes with temperature. A sample at 10 °C measured correctly reads the pH at 10 °C.
The signal is tiny and its source impedance is very high, hundreds of megohms through the glass, which makes the measurement sensitive to moisture in connectors, cable length, and electrical noise. Modern sensors put a preamplifier in the sensor body or the cable head, and the transmitter is mounted close.
Sensor types
| Type | Reference design | Strength | Limit |
|---|---|---|---|
| Combination, gel-filled | Sealed gel electrolyte, single or double junction | No maintenance of the electrolyte; inexpensive | Gel depletes and cannot be refilled; life of months to a year or two in process water |
| Combination, refillable | Liquid electrolyte topped up through a fill port | Longer life; the junction can be flushed | Needs refilling; electrolyte leaks are a maintenance item |
| Double junction | A second chamber between the reference and the process | Protects the reference from sulfide, ammonia, and heavy metals that poison silver chloride | The standard for wastewater |
| Differential | A third electrode replaces the direct reference; both glass and reference are measured against it | Very tolerant of fouling and ground loops; long life | More expensive; specific to a manufacturer family |
| Flat glass | A flat rather than bulb measuring surface | Resists coating and abrasion; easier to clean | Slightly slower response |
Mounting and sample
- The glass must stay wet. A sensor that dries out is damaged, and one left in air over a weekend often does not recover.
- Flow past the sensor, but not turbulence that entrains air bubbles onto the glass. Insertion into a pipe with a flow of a foot or two per second, or a flow cell on a sample line, is typical.
- Mounting angle: bulb down, at least 15 degrees from horizontal, so bubbles in the reference do not sit on the junction.
- Temperature element in the same water, and the sensor and the process at the same temperature by the time the measurement is read.
- Away from injection points for acid, caustic, or chlorine, where the chemical is not yet mixed. A pH sensor at a caustic injection point reads the plume, not the water.
- Retractable or hot-tap assemblies where the sensor must be serviced without draining the line. On a wastewater channel, a submersible assembly on a swing arm that can be lifted to the walkway.
Calibration
A pH sensor is calibrated in two buffers that bracket the process pH, commonly 7 and 4 for acidic service or 7 and 10 for alkaline, at a known temperature, with fresh buffers. The transmitter reads the voltage in each, computes the offset from the pH 7 reading and the slope from the pair, and stores them. The offset and slope are the health of the sensor.
- 1
Rinse and blot
Rinse the sensor in clean water and blot the glass; do not wipe it. Wiping a glass electrode charges it and takes minutes to settle.
- 2
First buffer, pH 7
Immerse, stir gently, wait for the reading to stabilize, typically 30 seconds to two minutes. A sensor that takes longer has a slow reference. Accept the reading in the transmitter.
- 3
Rinse, second buffer
Immerse in the second buffer, wait, accept. The transmitter computes the slope.
- 4
Read the diagnostics
Offset within about 30 mV of zero and slope between about 92 and 102 percent of theoretical is a healthy sensor. Offset drifting away from zero or slope falling toward 85 percent means the sensor is aging; below that, replace it.
- 5
Return to process and compare
Compare with a grab sample measured on a bench meter that was itself calibrated. Agreement within 0.1 to 0.2 pH is typical for process water.
- 6
Record
Buffers and lot, temperature, offset, slope, grab result, date, and technician. The trend of slope over time is the replacement schedule.
Why pH drifts
| Cause | Symptom | Fix |
|---|---|---|
| Reference junction fouled or coated | Slow response, drift, offset growing | Clean the junction; flush a refillable reference; replace a gel sensor |
| Reference electrolyte depleted or contaminated | Offset growing, unstable reading | Refill; replace |
| Reference poisoned by sulfide or ammonia | Offset shifts, dark junction | Double-junction sensor |
| Glass coated with grease, biofilm, or scale | Slow response, low slope | Clean with detergent, or dilute acid for scale; a flat glass sensor; automatic cleaning |
| Glass aged | Slope falling steadily over months | Replace; glass has a finite life |
| Glass cracked | Reading jumps to near pH 7 and stops responding | Replace |
| Moisture in the connector | Erratic reading, especially after rain | Dry and seal the connector; check the cable |
| Ground loop or stray current | Reading shifts when a pump starts | Solution ground on the sensor; differential sensor; check the loop grounding |
| Temperature element failed | Reading wrong by a fraction of a pH at temperatures away from 25 °C | Replace; check the compensation setting |
Using pH for control
pH control is notoriously difficult because the relationship between chemical added and pH is a titration curve: nearly flat far from the endpoint and almost vertical near it. A feed loop tuned for one region of the curve is either sluggish or unstable in another. For water treatment, where pH is adjusted by a small amount for corrosion control or coagulation, flow-paced feedforward with slow pH trim and a modest dose range works well. For neutralization of a wide swing, staged reactors, characterized control that adapts the gain to the curve, or simply a large reaction volume are the usual answers. In every case the pH signal is validated: a sensor reading exactly 7.00 with no noise is often a cracked glass, not a neutral process, and the feed must not chase it.
Frequently asked questions
- How often should a pH sensor be calibrated?
- Weekly to monthly in process water, set by the drift observed. Compare with a grab sample more often than you calibrate, and calibrate when the comparison says to or on the schedule, whichever comes first. A sensor that needs calibration every few days is fouling or dying, and calibration is not the fix.
- Why does the reading drift after calibration when the sensor goes back in the process?
- The process is at a different temperature than the buffers, and the sensor needs minutes to equalize; or the junction is slow to re-establish contact after the buffers; or the process has a coating that the buffers washed off and that is now re-forming. Wait fifteen minutes before judging, then compare with a grab sample.
- What is a solution ground and do I need one?
- A third metal contact on the sensor that ties the process liquid to the transmitter reference, so that stray currents in the liquid flow through it rather than through the reference junction. It stabilizes the reading in tanks with pumps, mixers, or cathodic protection. Most process sensors have one; use it.
- Is a differential sensor worth the cost?
- In wastewater and dirty water, usually. It tolerates fouling that stops a conventional reference, its salt bridge is replaceable, and it is immune to the ground loop problems that plague conventional sensors in tanks with mixers. In clean water a good double-junction combination sensor does the job for less.
Related topics
- Chlorine Residual AnalyzersAmperometric and colorimetric residual analyzers: what each measures, free versus total chlorine, pH and flow dependence, sample line design, calibration against a DPD grab sample, and using the signal for feed control.
- Ground Loops in InstrumentationTwo grounds at different potentials, one signal circuit between them, and a reading that will not sit still. How to find it and how to prevent it.
- Signal ValidationCatching a failed analog input in logic before it runs a pump on a dead transmitter: range checks, module status bits, frozen-value detection, rate checks, and what the program does with a bad value.
- PID Control for Pumps and ValvesWhat each term actually does, how to tune a loop on a real pump station, and the handful of mistakes that cause most of the oscillation people blame on tuning.
- 4-20 mA Signals from the Instrument SideHow a 4-20 mA current loop is powered and wired at the transmitter, why the loop resistance budget matters, and how to check a loop with a meter.
- How to Diagnose a Ground LoopProve that a noisy or offset analog signal is a ground loop, find the second ground, and fix it the right way: remove the extra ground, isolate the signal, or correct the shield termination. With the measurements that make the diagnosis certain.
Direct contact
Have a controls question?
Reach Eric Sullivan directly about anything on this site, a controls or automation topic, or one of his personal projects.