What it is: A capacitive soil-moisture sensor measures how wet soil is by sensing its dielectric constant. Because it doesn't pass current through the soil, it doesn't corrode like the old resistive "two-prong" probes — so it lasts far longer in a plant pot.
How it works: The board outputs an analog voltage that rises as the soil gets drier. You read it and map it between your own "fully wet" and "dry in air" calibration points to get a 0–100 % moisture figure.
Wiring:
Soil AO -> GPIO0 (analog)
Soil VCC -> 3V3
Soil GND -> GND
OLED VCC=3V3, GND=GND, SDA=GPIO4, SCL=GPIO5
Libraries: only "Adafruit SSD1306" and "Adafruit GFX Library".
On screen / Serial: moisture as 0–100 % plus the raw millivolts. Dip the probe (up to the line, not the electronics) in water vs leave it in air.
Gotchas: You MUST calibrate: note the mV in dry air (AIR_MV) and in a glass of water (WATER_MV) and put them in the code. Only submerge the sensing area, never the top electronics. Different boards read different ranges, so calibration is per-sensor.