Component guide · Intermediate · 3 min read
Analog pH Sensor Kit (BNC Probe and PH-4502C Board)

Calibration and Arduino Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
An analog pH kit pairs a glass pH electrode with a small amplifier board that turns the electrode's millivolts into a 0 to 5 V signal. Calibrate with pH 7 and pH 4 buffer solutions, then the code converts voltage to pH. The probe must stay wet in storage solution, and it wears out in one to two years, so treat it as a consumable.
Key specs at a glance
- Range
- pH 0 to 14
- Accuracy
- About +/-0.1 pH after calibration
- Electrode
- Glass, BNC connector, 1 m or longer cable
- Board
- PH-4502C (offset trimmer, temperature pin) or DFRobot Gravity
- Supply
- 5 V
- Output
- Analog voltage, about 2.5 V at pH 7
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1DFRobot Gravity Analog pH Sensor for Arduino – BNC Connector, 0-14pH Range₹3,099
Option 2Liquid pH Value Detection Sensor for Arduino – BNC Probe₹679
Option 3PH Electrode Probe for Liquid pH Value Detection – BNC Connector, 1m Cable₹769
Option 4Elecrow Crowtail- PH Sensor – Crowtail Interface Module₹1,569
What the Analog pH sensor kit is
A pH electrode produces about 59 mV per pH unit at 25 C, centred on 0 mV at pH 7. The board adds an offset so pH 7 reads about 2.5 V and acidic solutions read higher on PH-4502C boards.
Temperature changes the slope slightly; for better accuracy measure temperature and compensate. Never leave the probe dry, and rinse it with distilled water between solutions.
Analog pH sensor kit pinout
The pins on the Analog pH sensor kit and what each one does.
| Pin | Function |
|---|---|
| V+ / VCC | 5 V |
| G / GND | Ground |
| Po / AOUT | pH analog output |
| Do | Limit output (PH-4502C) |
| To | Temperature output (PH-4502C, if fitted) |
| BNC | Electrode |
- V+ / VCC
- 5 V
- G / GND
- Ground
- Po / AOUT
- pH analog output
- Do
- Limit output (PH-4502C)
- To
- Temperature output (PH-4502C, if fitted)
- BNC
- Electrode
Wiring the Analog pH sensor kit
Keep the probe cable away from pumps and mains wiring. With an ESP32, read through an ADS1115 or scale the 0 to 5 V output down.
| Analog pH sensor kit pin | Arduino Uno | ESP32 |
|---|---|---|
| VCC | 5V | 5V (VIN) |
| GND | GND | GND |
| Po | A0 | ADS1115 A0 (or GPIO 34 via divider) |
- VCC
- Arduino Uno:
- 5V
- ESP32:
- 5V (VIN)
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- Po
- Arduino Uno:
- A0
- ESP32:
- ADS1115 A0 (or GPIO 34 via divider)
Example code
The DFRobot Gravity board has its own library with built-in calibration commands. Recalibrate monthly, or before important measurements.
// Measure voltage in pH 7 and pH 4 buffers and enter them here
const float V7 = 2.50;
const float V4 = 3.05;
const float SLOPE = (7.0 - 4.0) / (V7 - V4);
void setup() { Serial.begin(9600); }
void loop() {
long sum = 0;
for (int i = 0; i < 20; i++) { sum += analogRead(A0); delay(10); }
float v = sum / 20.0 * 5.0 / 1023.0;
float ph = 7.0 + (v - V7) * SLOPE;
Serial.print("V "); Serial.print(v, 3); Serial.print(" pH "); Serial.println(ph, 2);
delay(1000);
}Setup and tuning
on the PH-4502C, short the BNC centre to the shell and turn the offset trimmer for 2.5 V.
use fresh pH 7 and pH 4 buffers (pH 10 for alkaline work).
keep the cap filled with KCl storage solution, never distilled water.
in tanks with pumps or other probes, an isolator stops readings jumping.
What you need
Shop this list9 of 10 found in our store · ₹3,680
DFRobot Gravity Analog pH Sensor for Arduino – BNC Connector, 0-14pH Range: the part this guide coversBNC Connector₹38
Generic Liquid pH Value Detection Sensor for Arduino – BNC Probe: another version this guide coversLiquid pH Value Detection Sensor for Arduino – BNC Probe₹679
Generic pH Electrode Probe for Liquid pH Value Detection – BNC Connector, 1m Cable: another version this guide coversBNC Connector₹38
Elecrow Crowtail- PH Sensor – Crowtail Interface Module: another version this guide coversElecrow Crowtail- PH Sensor – Crowtail Interface Module₹1,569- Uno R3 development board: the controller used in the wiring tableFind this part
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
ADS1115 16-bit 4-channel ADC module: better analog readings, especially on ESP32ADS1115 16-Bit 4-Channel ADC Module₹199
DS18B20 waterproof temperature probe: temperature for compensationSonoff DS18B20 Waterproof Temperature Sensor Probe w/ 1m Cable – 1-Wire Interface₹340
16x2 LCD with I2C: to show readings on a character display16×2 LCD with I2C (RG1602A)₹179Closest match, check the specs
Mini peristaltic dosing pump: to dose nutrient or pH solutionMini Peristaltic Dosing Pump₹249
Alternatives and when to choose them
- Water quality sensors: pH, TDS and turbidity together.
- Analog TDS sensor: dissolved solids for hydroponics.
- pH and TDS pen meters: handheld testers to check your readings.
Common mistakes to avoid
- Letting the electrode dry out.
- Calibrating with old or contaminated buffers.
- Placing pH and TDS probes in the same water while both are powered, causing interference.
- Expecting the probe to last for years.
Frequently asked questions
How often should I calibrate?
Monthly for continuous use, or before each important test.
Why does the reading drift?
Probe ageing, temperature or electrical interference.
Can it measure soil pH?
Only in a soil and water slurry; use an RS485 soil pH probe for direct soil.
Can it stay in water all the time?
Yes, lab-grade probes can, but they still age.
Does it work on 3.3 V boards?
Use an ADS1115 or divider; the board needs 5 V.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.


