The problem
Farmers and agronomy students often decide fertiliser and lime doses without knowing their soil pH, because laboratory soil testing takes days and costs money for every sample. This DIY soil pH meter for agriculture measures soil acidity on the spot: a soil sample is mixed with distilled water into a slurry, an analog pH probe reads the hydrogen-ion activity of that slurry, and an Arduino Uno converts the probe voltage into a pH value shown on a 16x2 LCD. Soil pH controls which nutrients plant roots can absorb, so a reading outside a crop's preferred range explains poor growth even when fertiliser is applied. Commercial pH meters are either coarse colour-strip kits or laboratory instruments priced beyond a student budget. This project fills the gap with a calibrated, repeatable instrument built from a DFRobot SEN0161-V2 probe, an Arduino Uno and a temperature sensor, giving students a working measurement tool and a complete electronics, calibration and soil-science story for their project.
Collects a soil sample and mixes it with distilled water into a slurry.
Follow the working sequence
How it works
The measurement chain runs from soil sample to probe voltage to calibration maths to LCD display. A 10 g air-dried soil sample is mixed with 25 mL of distilled water (a 1:2.5 soil-to-water ratio) and stirred, then left to settle for 30 minutes so the soil's hydrogen ions equilibrate with the water. The glass bulb of the pH probe is immersed in the slurry: hydrogen ions exchange across the glass membrane and produce a voltage that changes with their activity, following the Nernst equation at about 59.16 mV per pH unit at 25 °C. The SEN0161-V2 signal board buffers that tiny electrode voltage and scales it to a 0–3.0 V analog signal the Arduino Uno reads on an analog pin. Firmware applies the two-point calibration constants and the DS18B20 temperature correction, converts voltage to pH, and prints the result on the 16x2 LCD with an acidic, neutral or alkaline label.
- Collect a soil sample from 10–15 cm depth, air-dry it, and sieve out stones and roots.
- Weigh 10 g of the prepared soil into a clean beaker and add 25 mL of distilled water (1:2.5 soil-to-water ratio).
- Stir the slurry for about 5 minutes, then leave it to settle for 30 minutes so the hydrogen ions equilibrate.
- Calibrate the meter: rinse the probe in distilled water, immerse it in pH 7.0 buffer and record the reading, then repeat with pH 4.0 buffer; the firmware computes the offset and slope from the two points.
- Stir the slurry again, immerse the glass bulb in the liquid above the settled soil without touching the sediment, and wait for the display to settle.
- The Arduino averages the ADC samples, applies the calibration constants and the temperature correction, and shows the pH with an acidic, neutral or alkaline label.
- Rinse the probe in distilled water between samples and store the bulb in 3M KCl solution after the session.
Tech stack:
- Arduino Uno (ATmega328P)
- DFRobot SEN0161-V2 analog pH kit
- DS18B20 temperature sensor
- 16x2 character LCD with I2C adapter
- Arduino IDE (C/C++ firmware)
- pH 4.0 and 7.0 buffer solutions
- Breadboard · jumper wires · 9 V battery pack
- Distilled water · 3M KCl probe storage solution
| Parameter | Value |
|---|---|
| pH measurement range | 0–14 pH (datasheet value) |
| Accuracy | ±0.1 pH at 25 °C (datasheet value, calibration-dependent) |
| Probe response time | ≤2 minutes (datasheet value) |
| Signal board output | 0–3.0 V analog (datasheet value) |
| Signal board supply | 3.3–5.5 V DC (datasheet value) |
| Probe cable length | 100 cm (datasheet value) |
| Probe temperature range | 5–60 °C (datasheet value) |
| Electrode slope | 59.16 mV per pH unit at 25 °C (Nernst equation, theoretical value) |
| Temperature sensor range | −55 to +125 °C (DS18B20 datasheet value) |
| Slurry ratio | 1:2.5 soil to distilled water (standard procedure) |
| Sample size | 10 g soil + 25 mL distilled water (standard procedure) |
| Settling time | 30 minutes (standard procedure) |
| Display | 16x2 LCD, pH to 1 decimal place |
| Power | 5 V USB or 9 V battery pack (design choice) |
| Calibration | Two-point, pH 4.0 and 7.0 buffers (buyer-run procedure) |
Project features
This soil pH meter's strongest capabilities are its two-point buffer calibration, its temperature-compensated reading, its crop-suitability reference and its repeatable soil-slurry procedure. Two-point calibration against pH 4.0 and 7.0 buffer solutions anchors the probe's voltage-to-pH conversion at both ends of the agricultural range, so the displayed value is tied to known standards rather than a factory guess. A DS18B20 temperature sensor feeds the Nernst slope correction into the firmware, because the probe produces about 59.16 mV per pH unit at 25 °C and that slope shifts with temperature. The printed crop-suitability reference turns a bare number into advice, listing the preferred pH range for rice, wheat, maize, tomato and potato. Finally, the documented 1:2.5 soil-to-water slurry procedure means two students testing the same field sample follow the same steps and can compare results.
- [Two-point buffer calibration] The firmware is calibrated against pH 4.0 and pH 7.0 standard buffer solutions, storing an offset and a slope so the voltage-to-pH conversion is anchored to known standards at both ends of the agricultural range.
- [Temperature-compensated readings] A DS18B20 temperature sensor measures the slurry temperature and the firmware corrects the Nernst slope from its 25 °C value of 59.16 mV per pH unit, so warm and cool samples are read on the same scale.
- [Live 16x2 LCD readout] The measured pH is shown to one decimal place with an acidic, neutral or alkaline label, and the display waits for the reading to settle before showing a stable value.
- [Crop-suitability reference] A printed reference card lists the preferred soil pH range for rice (5.5–6.5), wheat (6.0–7.0), maize (5.8–7.0), tomato (6.0–6.8) and potato (5.0–6.0), so a reading is immediately interpretable as advice.
- [Standard 1:2.5 slurry procedure] The documented procedure — 10 g of air-dried soil mixed with 25 mL of distilled water, stirred, settled for 30 minutes and stirred again — follows the standard soil-water suspension method used by agricultural laboratories.
- [Averaged, filtered readings] Firmware averages multiple ADC samples and applies a settling check before displaying a value, so a single noisy sample cannot move the reading.
- [Probe care routine] The kit includes the rinse-in-distilled-water and store-in-3M-KCl routine that keeps the glass electrode healthy, with a written checklist for every test session.
What is included
- Working prototype: Arduino Uno, SEN0161-V2 pH kit, DS18B20 sensor, 16x2 LCD and breadboard wiring
- Firmware source code with two-point calibration and temperature-compensation routines
- Two-point calibration procedure with buffer handling and slope-check steps
- Soil sampling and slurry preparation guide (1:2.5 method with settling times)
- Printed crop-suitability reference card (rice, wheat, maize, tomato, potato)
- Wiring diagram and component list
- Project report PDF (background, Nernst theory, calibration method, procedure, results format)
- PPT presentation for final review
- Viva Q&A preparation document (pH theory, Nernst equation, calibration, soil sampling)
Limitations & prerequisites
- Accuracy is probe- and calibration-dependent: the ±0.1 pH datasheet figure applies at 25 °C after a fresh two-point calibration, and an uncalibrated or aged probe reads worse.
- The probe is for dip-and-read testing, not continuous immersion — the DFRobot wiki notes the SEN0161 probe lasts about 6 months under continuous testing, while the V2 laboratory-grade probe lasts over 0.5 year depending on use.
- A water-extract slurry reading is not identical to a laboratory CaCl2 extraction, and the measured pH rises slightly with dilution, so the 1:2.5 method must be stated alongside every reported reading.
- The glass bulb is fragile and must never touch the settled soil layer or the beaker bottom. Builder note from the build: resting the bulb on the sediment shifted the reading by several tenths, so the probe is held in the liquid above the settled soil for every measurement.
- Readings drift if the probe is stored dry; the bulb must be kept in 3M KCl storage solution between sessions.
- This is an academic prototype, not a certified soil-testing instrument — results are advisory and cannot replace a laboratory soil test for regulatory or certification purposes.
Frequently Asked Questions
What does the pH probe actually measure?
The probe measures the hydrogen-ion activity of the soil-water slurry, which is exactly what pH means: pH is the negative logarithm of hydrogen-ion activity. A special glass membrane on the probe tip exchanges hydrogen ions with the slurry and produces a voltage that changes with their concentration, following the Nernst equation at about 59.16 mV per pH unit at 25 °C. The signal board scales that voltage to 0–3.0 V, the Arduino reads it, and the firmware converts it to a pH value using the two-point calibration.
How accurate is the meter?
The DFRobot SEN0161-V2 datasheet states ±0.1 pH at 25 °C, but that figure only holds after a fresh two-point calibration with a healthy probe. In practice the accuracy depends on calibration freshness, probe age, slurry temperature and how carefully the 1:2.5 procedure is followed. The kit includes a slope-check step — comparing the measured slope against the theoretical 59.16 mV per pH unit — so the student can state the probe's actual condition in the report instead of quoting the datasheet blindly.
Which crops does the reference card cover?
The printed reference card covers five common Indian crops with preferred soil pH ranges taken from agricultural extension guidance: rice 5.5–6.5, wheat 6.0–7.0, maize 5.8–7.0, tomato 6.0–6.8 and potato 5.0–6.0. These are indicative ranges for planning, not rigid pass-or-fail limits — the best range shifts with variety, soil type and irrigation water. Additional crops can be added to the card on request.
Can the probe be pushed directly into field soil?
No — the probe must be used in a liquid slurry, never pushed into dry or moist field soil. Direct insertion gives unstable readings and risks cracking the fragile glass bulb against stones or compacted soil, so every reading taken that way would be unreliable and unrepeatable. The correct procedure is the 1:2.5 slurry method: mix 10 g of air-dried soil with 25 mL of distilled water, let it settle for 30 minutes, and immerse only the glass bulb in the liquid above the settled soil.
What power supply does it need?
The prototype runs from a 5 V USB connection (a laptop or USB power bank) during demonstrations, or from a 9 V battery pack through the Arduino's onboard regulator for field use. The signal board accepts 3.3–5.5 V DC and draws only a few milliamps, so a standard 9 V battery comfortably powers a full day of test sessions. No mains power is needed at any point.
Is this project suitable for a final-year project?
Yes — for Electronics and Telecommunication, Electrical and Instrumentation engineering programs, and for agriculture-engineering students with an electronics focus. It demonstrates analog sensor interfacing, the Nernst equation in a real measurement, two-point calibration, temperature compensation and a standard soil-testing procedure, with a working prototype and a clear viva story.
Components & software requirements
- Arduino Uno (ATmega328P)
- DFRobot SEN0161-V2 analog pH kit
- DS18B20 temperature sensor
- 16x2 character LCD with I2C adapter
- Arduino IDE (C/C++ firmware)
- pH 4.0 and 7.0 buffer solutions
- Breadboard · jumper wires · 9 V battery pack
- Distilled water · 3M KCl probe storage solution
Delivery information
Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.
Support terms
Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.
Download free synopsis (PDF)
Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.