A Soil Moisture Sensor Module (Soil Hygrometer) is an electronic device designed to measure the volumetric water content or moisture levels in soil. It is widely used in DIY electronics projects, automated smart irrigation networks, and greenhouse environmental controls.Hardware Overview & Working PrincipleThe standard kit consists of two distinct components linked by a jumper wire: the two-pronged soil probe and the electronic comparator driver board.
- The Mechanism: This is a resistive sensor. The probe detects the changes in electrical conductivity of the surrounding medium. Dry soil has high electrical resistance (low conductivity), while wet soil contains water that conducts electricity easily, resulting in low resistance.
- On-Board Comparator (LM393): The controller board houses an LM393 voltage comparator integrated circuit to digitize the state of the soil against a reference value.
- Built-in Potentiometer: A blue trimming dial allows you to manually fine-tune the sensitivity threshold. Turning it adjusts when the digital trigger activates.
- Visual Status LEDs: The board features a red LED for power confirmation and a green/yellow LED indicating the switching output status.
Module Specifications
- Operating Voltage: 3.3V to 5V DC
- Operating Current: Less than 20mA
- Module PCB Dimensions: ~3.0cm x 1.6cm
- Probe Dimensions: ~6.0cm x 2.0cm
- Anti-Corrosion Finish: Commonly coated with gold or immersion tin plating to extend the lifespan of the probes.
Interface & Pin ConfigurationThe comparator board features two connection blocks. The 2-pin block links directly to the sensor fork via cables. The 4-pin block interfaces directly with microcontrollers like Arduino UNO, ESP32, or Raspberry Pi:
- VCC: Power input (3.3V – 5V)
- GND: Ground connection
- DO (Digital Output): Outputs a HIGH logic state when the soil is dry and drops to a LOW state once the moisture surpasses the potentiometer setting.
- AO (Analog Output): Outputs a varying voltage level relative to real-time humidity. Higher voltage readings generally map to drier conditions when referenced to a VCC standard, allowing for granular software mapping.