What is pH sensor & How does it work?

Share:

Analytical Measurement · pH Sensor · Nernst Equation · Process Control

What Is a pH Sensor and How Does It Work? Nernst Equation, Types and Industrial Applications

A pH sensor measures the hydrogen ion activity in a liquid and converts it to a millivolt signal using the Nernst equation. This guide explains the electrochemistry behind the glass electrode, the role of the reference electrode, the Nernst equation with a worked example, the four sensor types, calibration requirements, and an interactive pH-to-millivolt calculator.

Nernst Equation Explained SVG Electrode Diagram pH to mV Calculator 4 Sensor Types

What Is pH and Why Is It Measured in Process Plants?

pH is a measure of the hydrogen ion concentration in a solution, expressed on a logarithmic scale from 0 to 14. A pH of 7 is neutral (pure water at 25°C). Values below 7 are acidic (more H⁺ ions than OH⁻ ions). Values above 7 are alkaline or basic. Because the scale is logarithmic, each unit change represents a ten-fold change in hydrogen ion concentration: a solution at pH 4 has 10 times more H⁺ ions than one at pH 5, and 100 times more than one at pH 6.

pH control is one of the most important analytical measurements in process industries. In analytical measurements for water and wastewater treatment, the effluent must be maintained between pH 6.5 and 8.5 before discharge. In chemical manufacturing, reaction yield and selectivity depend critically on pH. In food and beverage production, pH determines shelf life, texture and safety. In pharmaceutical manufacturing, pH directly affects drug stability and bioavailability. Incorrect pH can damage equipment through corrosion, poison catalyst beds, and cause product quality failures that shut down production lines.

Figure 1: pH Scale and Common Industrial Reference Points
0 1 2 3 4 5 6 7 8 9 10 14 ACIDIC NEUTRAL ALKALINE Battery acid Vinegar pH 4 Pure water pH 7.0 Seawater pH 8.1 Milk of magnesia Wastewater discharge range: 6.5 to 8.5

Figure 1: The pH scale from 0 (most acidic) to 14 (most alkaline). Each unit is a 10-fold change in hydrogen ion concentration. Wastewater discharge regulations in most countries require effluent between pH 6.5 and 8.5. The human blood pH of 7.4 is tightly regulated; deviations beyond 7.0-7.8 are life-threatening.

How a pH Sensor Works: Glass Electrode and the Nernst Equation

A pH sensor converts the hydrogen ion concentration of a liquid into a measurable voltage. This conversion happens at the glass membrane of the measuring electrode. When this special pH-sensitive glass is immersed in a solution, hydrogen ions from the solution exchange with ions in the outer surface of the glass, creating a potential difference across the membrane. This potential is directly proportional to the pH of the solution according to the Nernst equation.

The sensor consists of two electrodes working together. The measuring electrode (glass electrode) generates the pH-dependent voltage. The reference electrode maintains a stable, constant voltage regardless of pH, giving the measuring electrode a fixed baseline to work against. The pH transmitter measures the voltage difference between these two electrodes and converts it to a pH reading. Many modern sensors are combination electrodes where both are housed in a single body.

Nernst equation: the relationship between pH and electrode voltage E = E0 - (2.303 x R x T) / (n x F) x pH

Where:
E = measured electrode potential (mV)
E0 = standard electrode potential (mV, specific to electrode)
R = universal gas constant (8.314 J/mol·K)
T = absolute temperature (Kelvin = °C + 273.15)
n = number of electrons transferred = 1 (for H+)
F = Faraday constant (96,485 C/mol)
pH = -log10[H+]

Nernst slope at 25°C (298.15 K): Slope = 2.303 x R x T / F = 2.303 x 8.314 x 298.15 / 96485
Slope = 59.16 mV per pH unit at 25°C
Simplified form at 25°C: E = E0 - 59.16 x pH (millivolts)

The slope changes with temperature: at 20°C it is 58.16 mV/pH, at 50°C it is 64.12 mV/pH. This is why temperature compensation is essential in all pH measurements. A 1°C error in temperature compensation causes approximately 0.02 pH units of error.
What the Nernst slope means in practice
At 25°C, each pH unit change produces 59.16 mV change at the electrode. A new, well-functioning glass electrode has a slope close to 100% of the Nernst ideal (59.16 mV/pH). As the electrode ages, the slope decreases. Most pH transmitters perform a two-point calibration using buffer solutions to determine both the zero point (offset, mV at pH 7) and the actual slope. When the measured slope falls below 85% of theoretical (below about 50 mV/pH), the electrode needs replacement.

pH Sensor Components: Measuring Electrode and Reference Electrode

Figure 2: pH Combination Electrode Cross-Section
COMBINATION pH ELECTRODE REFERENCE ELECTROLYTE (KCl solution) GLASS ELECTRODE Internal buffer pH 7.0 pH GLASS MEMBRANE Liquid junction (KCl leaks out) PROCESS SOLUTION (unknown pH) H+ ions exchange with glass membrane surface How it works: 1. H+ ions from process solution exchange with glass membrane 2. Creates potential across membrane (Nernst: 59.16 mV per pH unit) 3. Reference electrode provides stable baseline via KCl junction 4. Transmitter measures E_glass minus E_reference = pH signal 5. Temperature sensor corrects for Nernst slope change with T mV signal to transmitter

Figure 2: Cross-section of a combination pH electrode. The glass membrane at the tip is the key component: H+ ions from the process liquid exchange with ions in the outer gel layer of the special pH glass, creating a voltage proportional to pH. The reference electrode (containing KCl) provides a stable potential through the liquid junction. The transmitter measures the difference and converts it to a pH reading.

pH Sensor Voltage Calculator: Nernst Equation with Temperature Compensation

Enter the pH and temperature to calculate the expected electrode voltage using the Nernst equation. This is useful for bench-checking a pH transmitter: if the measured voltage deviates significantly from the calculated Nernst voltage, the electrode may need cleaning or replacement. The signal quality of a pH measurement also depends on minimising electrical noise on the high-impedance electrode cable.

pH Sensor Voltage Calculator
Nernst equation with temperature correction · pH to mV and mV to pH · Slope check
Enter the known or expected pH (0 to 14)
Solution temperature for Nernst slope correction
°C
From calibration. New electrode: typically 0 ± 30 mV
mV
% of Nernst slope. New electrode: 95-100%. Below 85%: replace.
%
✔ Nernst Calculation Result
Nernst slope
Actual slope
Expected E (mV)
Electrode status

Types of pH Sensors Used in Process Plants

TypeConstructionBest forLimitations
Glass electrode (combination)Measuring glass electrode and Ag/AgCl reference electrode combined in one body. Most common industrial type. Requires regular calibration with buffer solutions.General process applications: wastewater, chemicals, food and beverage, pharmaceutical. Works 0-14 pH, 0-80°C.Glass is fragile. KCl junction can become contaminated in protein-rich or sulphide-containing media. Not suitable for hydrofluoric acid (HF attacks glass).
ISFET sensorIon-sensitive field-effect transistor. The pH-sensitive surface is a metal oxide gate (silicon nitride or tantalum pentoxide) instead of glass. Electronic signal generated directly by the FET.Plastic body: no glass breakage risk. Ideal for food processing, pharmaceuticals, bioreactors. Faster response than glass. Works in high organic solvent content.Higher cost. More sensitive to electromagnetic interference. Requires careful handling of the semiconductor gate surface.
Differential pH sensorUses a third reference electrode (ground electrode) in addition to measurement and reference electrodes. The differential measurement cancels out ground loop interference between the process and the instrument. Common with 4-20 mA transmitters.Processes with electrical noise from motors, VFDs or grounded metallic pipework. Wet scrubbers, electrolysis cells, electrochemical processes. Excellent for difficult electrical environments.More complex calibration. Larger sensor body. Higher cost than standard combination electrode.
Enamel (ceramic) sensorpH-sensitive enamel coating on a ceramic substrate replaces the glass membrane. No glass breakage. Extremely durable reference system with minimal maintenance.Long-term stability applications where maintenance access is difficult. Hydrofluoric acid service (enamel resists HF). High temperature processes up to 130°C and 10 bar.Slightly lower sensitivity than glass. Higher initial cost. Not suitable for very low ionic strength solutions (pure water).

pH Sensor Calibration: Two-Point Buffer Calibration

A pH sensor must be calibrated regularly because the glass electrode ages and its zero point (isopotential point) and slope change over time. Calibration establishes the actual relationship between the electrode voltage and pH for that specific electrode at the time of calibration. Unlike a temperature transmitter calibration where you adjust span and zero to match a standard, pH calibration uses certified buffer solutions of known pH.

Standard two-point pH calibration procedure
  1. Rinse the electrode with deionised water and blot dry (never rub). Allow to stabilise at process temperature.
  2. Immerse in pH 7.00 buffer (first point). Wait for reading to stabilise. Set the transmitter zero to 7.00. This establishes the isopotential point (E0).
  3. Rinse with deionised water and immerse in a second buffer (pH 4.01 for acidic processes or pH 9.21 for alkaline processes). Set transmitter span to match buffer pH.
  4. The transmitter now calculates the actual electrode slope as: Slope% = (E_pH4 - E_pH7) / (theoretical span) x 100. If slope is below 85%, replace the electrode.
  5. Record calibration date, buffer lot numbers, measured slope and zero offset for calibration traceability.
Common pH calibration mistakes to avoid
  • Using expired buffer solutions: Buffer solutions degrade over time (especially pH 7 and pH 9 buffers absorb CO₂ from air). Always use fresh, sealed buffers within their expiry date.
  • Wrong buffer temperature: Buffer pH values are temperature-dependent. A pH 4.01 buffer at 25°C reads differently at 50°C. Use temperature-corrected buffer values or calibrate at process temperature.
  • Not allowing stabilisation time: A dried-out or fouled glass membrane can take 5-10 minutes to reach equilibrium in a buffer. Calibrating too quickly gives an incorrect zero point.
  • Calibrating in the wrong order: Always start with pH 7.00 first (sets zero/isopotential), then the span buffer. Reversing the order introduces error.

Industrial Applications of pH Sensors in Process Plants

IndustrypH measurement pointTypical pH rangeWhy pH matters
Water and wastewater treatmentEffluent discharge point, coagulation dosing, lime addition control6.5 to 8.5Regulatory compliance for discharge. pH drives coagulation efficiency and disinfection effectiveness.
Chemical manufacturingReactor pH control, neutralisation, crystallisationVaries by processpH controls reaction selectivity, yield and product purity. Incorrect pH can generate unwanted byproducts.
Food and beverageFermentation control, CIP (clean-in-place) rinse verification, product pH3 to 8 depending on productpH affects microbial safety, texture, flavour and regulatory compliance.
PharmaceuticalBuffer preparation, API synthesis, formulation2 to 10Drug stability and bioavailability depend critically on pH. GMP requires validated pH measurement with full traceability.
Power generationCooling water, boiler feedwater, condensate8.0 to 9.5Slightly alkaline pH prevents corrosion of carbon steel pipework. pH is monitored continuously in the water-steam cycle.
Oil and gasProduced water treatment, amine scrubbing, caustic injection6 to 12pH control prevents scale deposition in pipelines and optimises H₂S/CO₂ removal in gas sweetening units.

Quick FAQs: pH Sensors

What is the Nernst slope and why does it matter for pH measurement accuracy?
The Nernst slope is the change in electrode voltage per pH unit: 59.16 mV/pH at 25°C. A new electrode has a slope near 100% of this theoretical value. As the glass ages, the slope decreases. When it falls below 85% (below about 50 mV/pH), measurement accuracy degrades significantly and the electrode must be replaced.
Why does temperature affect pH measurement?
Two effects: the Nernst slope changes with temperature (58.2 mV/pH at 20°C, 64.1 mV/pH at 50°C), and the pH of the solution itself changes with temperature for most liquids. All modern pH transmitters perform automatic temperature compensation (ATC) using a built-in RTD or NTC thermistor to correct the Nernst slope. Manual temperature compensation is also available for calibration bench work.
How often should a pH sensor be calibrated?
In industrial processes, daily to weekly calibration is typical for critical control loops such as effluent pH or fermentation pH. In clean, stable processes, monthly calibration may be acceptable. Calibration frequency should be based on process criticality, electrode drift history, and regulatory requirements. Always calibrate after cleaning, after sensor replacement, and when readings appear suspect.
What causes a pH electrode to fail or give wrong readings?
Common failure modes include: glass membrane fouling (biofilm, protein, oil coating the membrane), junction blockage (KCl junction clogged with process precipitates), glass poisoning (hydrofluoric acid dissolves pH glass permanently), electrode dehydration (glass membrane must remain wet), and normal ageing (gradual loss of Nernst slope over months). Regular cleaning, correct storage and timely replacement prevent most failures.

External References

What we learn today

  • A pH sensor converts H+ ion activity to millivolts using the Nernst equation: E = E0 - 59.16 x (pH - 7) at 25°C. Each pH unit = 59.16 mV. Temperature changes the slope (58.2 mV/pH at 20°C, 64.1 mV/pH at 50°C), requiring automatic temperature compensation.
  • Two-point calibration (pH 7.00 first, then pH 4.01 or 9.21 second) establishes both the electrode zero (E0) and the actual slope. When slope falls below 85% of the Nernst theoretical value, the electrode must be replaced.
  • Four sensor types: glass combination electrode (most common), ISFET (no glass breakage, good for food/pharma), differential (three-electrode design for electrically noisy processes), and enamel (HF resistant, high temperature, low maintenance).

    1 Comment

    • best vanuatu software development August 12, 2025

      It’s very easy to find out any matter on net as compared to textbooks,
      as I found this post at this site.

    Leave a Reply

    Your email address will not be published. Required fields are marked *