- Adjustable sensitivity via potentiometer.
- Operating voltage: 3.3V – 5V DC.
-
Dual output function:
- Analog output for measuring the humidity level.
- Digital output for activation/deactivation based on a preset threshold.
- Power indicator light: Red LED.
- Digital output indicator light: Green LED.
- Adjustable sensitivity via potentiometer.
- Operating voltage: 3.3V – 5V DC.
-
Dual output function:
- Analog output for measuring the humidity level.
- Digital output for activation/deactivation based on a preset threshold.
- Power indicator light: Red LED.
- Digital output indicator light: Green LED.
Suitable for:
- automatic irrigation systems,
- plant moisture monitoring,
- Arduino applications and DIY electronic projects,
- IoT agriculture and smart garden systems.
Guide for connecting a soil moisture sensor (Soil Hygrometer / Moisture Detection Module) with Arduino
Below is a detailed step-by-step guide for connecting a soil moisture sensor to an Arduino board.
Step 1: Required equipment
You will need:
- Arduino board (e.g., Arduino Uno)
- Soil moisture sensor (Soil Hygrometer / Moisture Detection Module)
- Breadboard (testing board)
- Connecting wires (Jumper Wires)
Step 2: Understanding the moisture sensor
The soil moisture sensor is an electronic unit that measures the moisture level in the soil.
It usually has the following pins:
-
VCC: Power supply for the sensor.
- Usually operates at 3.3V or 5V, depending on the model.
- OUT: Analog output that provides a voltage proportional to the moisture level.
- GND: Ground.
The output value varies according to the soil moisture.
Step 3: Connecting the sensor to the Breadboard and Arduino
- Place the sensor on the breadboard so that its pins are in different rows.
-
Connect the sensor's VCC pin:
- to the 3.3V or 5V pin of the Arduino (depending on the sensor's requirements).
-
Connect the OUT pin:
- to an analog input of the Arduino, e.g., A0.
-
Connect the GND pin:
- to the GND pin of the Arduino.
Step 4: Reading moisture level with Arduino
- Open the Arduino IDE on your computer.
- Create a new program (Sketch).
- Copy the following code:
#define MOISTURE_PIN A0 // Pin number to which the Soil Hygrometer/Moisture Detection Module is connected void setup() { Serial.begin(9600); // Start serial communication at 9600 bps } void loop() { int moistureValue = analogRead(MOISTURE_PIN); // Read analog value from the module Serial.print("Moisture Level: "); Serial.println(moistureValue); // Print the moisture level to serial monitor delay(1000); // Wait for 1 second }
- Verify and upload the code to the Arduino board.
- Open the Serial Monitor in the Arduino IDE to see the readings.
Interpreting measurements
The sensor displays analog values from:
0 to 1023
- Higher values → drier soil
- Lower values → more moisture
(The exact scale may vary depending on the sensor and soil type, so calibration may be necessary.)
Manufacturer
OEM- Type
- Temperature/Humidity
Important information
Specifications are collected from official manufacturer websites. Please verify the specifications before proceeding with your final purchase. If you notice any problem you can report it here.