Skip to main content
Call Eric:863-698-8266
CURRYCONTROLS.COMControls & Automation Knowledge Hub
ReferenceInstrumentationWaterWastewaterAnalog

pH Measurement

Glass electrodes, reference junctions, and why pH is the measurement that drifts: how the sensor works, temperature compensation, two-point buffer calibration, mounting rules, the failure modes of the reference, and using the signal for chemical feed control.

11 min readUpdated Sep 5, 2026Published Sep 5, 2026By Eric Sullivan

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

TypeReference designStrengthLimit
Combination, gel-filledSealed gel electrolyte, single or double junctionNo maintenance of the electrolyte; inexpensiveGel depletes and cannot be refilled; life of months to a year or two in process water
Combination, refillableLiquid electrolyte topped up through a fill portLonger life; the junction can be flushedNeeds refilling; electrolyte leaks are a maintenance item
Double junctionA second chamber between the reference and the processProtects the reference from sulfide, ammonia, and heavy metals that poison silver chlorideThe standard for wastewater
DifferentialA third electrode replaces the direct reference; both glass and reference are measured against itVery tolerant of fouling and ground loops; long lifeMore expensive; specific to a manufacturer family
Flat glassA flat rather than bulb measuring surfaceResists coating and abrasion; easier to cleanSlightly 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. 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. 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. 3

    Rinse, second buffer

    Immerse in the second buffer, wait, accept. The transmitter computes the slope.

  4. 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. 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. 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

CauseSymptomFix
Reference junction fouled or coatedSlow response, drift, offset growingClean the junction; flush a refillable reference; replace a gel sensor
Reference electrolyte depleted or contaminatedOffset growing, unstable readingRefill; replace
Reference poisoned by sulfide or ammoniaOffset shifts, dark junctionDouble-junction sensor
Glass coated with grease, biofilm, or scaleSlow response, low slopeClean with detergent, or dilute acid for scale; a flat glass sensor; automatic cleaning
Glass agedSlope falling steadily over monthsReplace; glass has a finite life
Glass crackedReading jumps to near pH 7 and stops respondingReplace
Moisture in the connectorErratic reading, especially after rainDry and seal the connector; check the cable
Ground loop or stray currentReading shifts when a pump startsSolution ground on the sensor; differential sensor; check the loop grounding
Temperature element failedReading wrong by a fraction of a pH at temperatures away from 25 °CReplace; 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.

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.