Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›Analog pH Sensor Kit (BNC Probe and PH-4502C Board)

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

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the Analog pH sensor kit isAnalog pH sensor kit pinoutWiring the Analog pH sensor kitExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

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
01

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.

02

Analog pH sensor kit pinout

The pins on the Analog pH sensor kit and what each one does.

PinFunction
V+ / VCC5 V
G / GNDGround
Po / AOUTpH analog output
DoLimit output (PH-4502C)
ToTemperature output (PH-4502C, if fitted)
BNCElectrode
PinFunction
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
03

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 pinArduino UnoESP32
VCC5V5V (VIN)
GNDGNDGND
PoA0ADS1115 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)
04

Example code

The DFRobot Gravity board has its own library with built-in calibration commands. Recalibrate monthly, or before important measurements.

Two-point pH calibration and reading (Uno) · Arduino C++Verify & upload in Electrolark
// 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);
}
05

Setup and tuning

Offset

on the PH-4502C, short the BNC centre to the shell and turn the offset trimmer for 2.5 V.

Buffers

use fresh pH 7 and pH 4 buffers (pH 10 for alkaline work).

Storage

keep the cap filled with KCl storage solution, never distilled water.

Isolation

in tanks with pumps or other probes, an isolator stops readings jumping.

06

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
07

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

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

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

  • DFRobot Gravity Analog pH Sensor for Arduino – BNC Connector, 0-14pH Range
    ₹3,099View
  • Liquid pH Value Detection Sensor for Arduino – BNC Probe
    ₹679View
  • PH Electrode Probe for Liquid pH Value Detection – BNC Connector, 1m Cable
    ₹769View
  • Elecrow Crowtail- PH Sensor – Crowtail Interface Module
    ₹1,569View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • ADS1115 16-Bit 4-Channel ADC Module
    ₹199View
  • DS18B20 Waterproof Temperature Sensor Probe w/ 1.8m Cable – 1-Wire Digital Interface
    ₹1,679View
  • 16×2 LCD with I2C (RG1602A)
    ₹179View
  • Mini Peristaltic Dosing Pump
    ₹249View
Shop Soil Moisture, pH & Agriculture Sensors

Keep learning

Buying guideIntermediateWater Quality SensorsHow analog pH, TDS and turbidity sensor kits work, calibration with buffer solutions, temperature compensation, probe care, and why TDS is not a safety test.3 min read · SensorsComponent guideBeginnerAnalog TDS Sensor (DFRobot Gravity and Grove)An analog TDS sensor measures the conductivity of water with a two-pin probe and an AC excitation board, then outputs 0 to 2.3 V that converts to dissolved solids in ppm.3 min read · SensorsComponent guideBeginnerDigital pH Pen and TDS/EC MeterPen-style pH and TDS/EC meters are pocket testers for drinking water, aquariums, hydroponics and science labs.3 min read · Tools & Workshop SkillsComponent guideIntermediateADS1115 16-Bit ADC ModuleThe ADS1115 adds four precise 16-bit analog inputs to any board over I2C.3 min read · Sensors

Sources

  • DFRobot Gravity analog pH sensor wiki
  • PH-4502C module documentation
  • Nernst equation for pH electrodes

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the Analog pH sensor kit isAnalog pH sensor kit pinoutWiring the Analog pH sensor kitExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide (Arduino Uno)8 items · ₹6,377

DFRobot Gravity Analog pH Sensor for Arduino – BNC Connector, 0-14pH Range · BNC Connector · Liquid pH Value Detection Sensor for Arduino – BNC Probe · Elecrow Crowtail- PH Sensor – Crowtail Interface Module · ADS1115 16-Bit 4-Channel ADC Module · Sonoff DS18B20 Waterproof Temperature Sensor Probe w/ 1m Cable – 1-Wire Interface · Mini Peristaltic Dosing Pump · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

Two-point calibration: 2.50 V in pH 7 buffer, 3.05 V in pH 4. The probe voltage rises as pH falls.

Serial monitor9600 baud
V 2.537  pH 6.80

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question