Soil Sensor

Soil Sensor

Soil moisture sensor for plants and gardens

Two-prong soil moisture probe with its own on-board co-processor. It measures the soil between the prongs and reports a calibrated moisture level over I2C, with a status LED that shows the reading at a glance. Ideal for automated watering and plant health monitoring.

For ages 14 and up. Not a toy. Contains small parts: choking hazard. Keep away from children under 3. Adult supervision recommended.

Made by Atech ApS, Lille Strandstræde 6A, st. th., 1254 København K, Denmark.

Technical specifications

Part
Soil Moisture Sensor (two-prong galvanic probe)
Interface
I2C (0x37)
Ports
1 port
Current
~25 mA
Chip
CH32V003

Pins

3.3V
supply
GND
ground
Data A
I²C SDA
Data B
I²C SCL

Key features

  • Calibrated 0-100% moisture readings
  • Conductance and raw readings too
  • Status LED colours itself from the reading
  • Low power draw
  • Single-width module

Common applications

Automated plant watering
Garden monitoring
Greenhouse control
Soil science projects
+ Use in Project

Technical

Sensor

Soil Sensor

Soil Moisture Sensor (two-prong galvanic probe)
No 3D modelThis module has no enclosure CAD in the render release yet, so there is nothing to show and the catalog states no size for it rather than guessing one.
Interfacei2c @ 0x37
PortsTakes 1 port; needs a port carrying i2c
Current25 mA
Sizeno 3D model, so none stated
DriverSoilSensor

A two-prong soil probe on a 70 mm blade. An on-board CH32V003 co-processor measures the resistance between the prongs and reports it over I2C at 0x37, with a status LED that colours itself from the reading. The driver reports calibrated moisture 0-100 %, plus conductance, resistance and the raw value, from a background poll task, so reads are instant. I2C SDA on Line A, SCL on Line B.

What it can do
  • read_moisture Read calibrated soil moisture, 0-100 %float %
  • read_conductance Read conductance between the prongs in microsiemensfloat uS
  • read_raw Read the raw oversampled reading (HIGH means DRY)int counts
  • calibrate_dry Record the current reading as the 0 % point; call with the probe in air
  • calibrate_wet Record the current reading as the 100 % point; call with the prongs in water
  • set_status_color Drive the on-module status LED
  • set_status_off Turn the on-module status LED off
How it works
SOIL MOISTURE SENSOR (two-prong probe, I2C co-processor at 0x37):
- THIS IS AN I2C MODULE, NOT AN ANALOG ONE. analogRead() on its port samples the idle
  SDA line and never tracks the soil (soil_sensor.md).
- THE RAW READING IS INVERTED: readRaw() is HIGH when the soil is DRY. readMoisture()
  is already the right way round (0 % dry, 100 % wet), so prefer it.
- Getters return the latest cached value from a background poll task and never block.
  Guard the first reads with hasReading() rather than showing a spurious 0 %.
- Moisture is only meaningful after calibration. Call setCalibration(dryRaw, wetRaw)
  in setup() with values the user recorded (it is ignored unless dryRaw > wetRaw), or
  expose calibrateDry() / calibrateWet() so they can record them.
- isDry() means the probe reads OPEN: in air, or the prongs are not touching soil. It
  does not mean "the plant needs water". isSaturated() means standing water or a short.
- The module already smooths on board; setSmoothing() and setSlewThreshold() are the
  knobs. Do not add a second filter on the host.
- For a probe that lives in soil for months, setSamplePeriod(1000) or slower: the probe
  is only energised while measuring.
- The status LED already shows moisture (a dry-to-wet colour ramp anchored to the
  calibration, dim white for an open probe). Only call setStatusColor() for something
  different; it keeps the LED until setStatusAuto().
Suggested control

A large moisture percentage readout with a vertical fill gauge beside it, coloured dry-to-wet, and a 24-hour sparkline beneath. Show a 'probe open' pill whenever the probe is out of contact, so a bench reading is never mistaken for parched soil. Add Calibrate dry / Calibrate wet buttons, since the percentage means nothing until both are recorded.

Pinout
Pinout
PinLineDirFunction
1HV–not connected
25V–not connected
33.3Vinputsupply
4GND–ground
5Data AbidirectionalI²C SDA
6Data BinputI²C SCL

from p2p/ground_truth/hardware/prototyping_line/modules/soil_sensor.md

Chip
CH32V003no single datasheet published