

The Maker Soil Moisture Sensor by Cytron Technologies Sdn Bhd is a reliable and easy-to-use sensor designed to measure the moisture level in soil. It provides analog and digital outputs, making it suitable for a wide range of applications, from simple gardening projects to advanced agricultural automation systems. This sensor helps users monitor soil conditions and optimize irrigation, ensuring healthy plant growth and efficient water usage.








Below are the key technical details of the Maker Soil Moisture Sensor:
| Parameter | Specification |
|---|---|
| Manufacturer | Cytron Technologies Sdn Bhd |
| Part ID | Maker Soil Moisture Sensor |
| Operating Voltage | 3.3V to 5V DC |
| Output Type | Analog and Digital |
| Analog Output Range | 0V (dry soil) to 3.3V/5V (wet soil) |
| Digital Output | High (wet) or Low (dry) |
| Current Consumption | < 20mA |
| Dimensions | 60mm x 20mm x 8mm |
| Interface | 3-pin header (VCC, GND, OUT) |
The Maker Soil Moisture Sensor has a 3-pin interface. Below is the pin configuration:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply pin (3.3V to 5V DC) |
| 2 | GND | Ground connection |
| 3 | OUT | Output pin (analog or digital signal based on soil moisture) |
Connect the Sensor:
Select Output Mode:
Place the Sensor in Soil:
Read the Output:
Below is an example code snippet to read both analog and digital outputs from the Maker Soil Moisture Sensor:
// Define pin connections
const int analogPin = A0; // Analog pin connected to OUT
const int digitalPin = 2; // Digital pin connected to OUT
void setup() {
Serial.begin(9600); // Initialize serial communication
pinMode(digitalPin, INPUT); // Set digital pin as input
}
void loop() {
// Read analog value from the sensor
int analogValue = analogRead(analogPin);
// Read digital value from the sensor
int digitalValue = digitalRead(digitalPin);
// Print the readings to the Serial Monitor
Serial.print("Analog Value: ");
Serial.print(analogValue); // Analog value indicates moisture level
Serial.print(" | Digital Value: ");
Serial.println(digitalValue); // Digital value is HIGH or LOW
delay(1000); // Wait for 1 second before the next reading
}
No Output Signal:
Inaccurate Readings:
Corrosion or Damage to Probes:
Sensor Not Responding to Moisture Changes:
Q: Can this sensor be used with a Raspberry Pi?
A: Yes, the sensor can be used with a Raspberry Pi. Use an ADC (Analog-to-Digital Converter) module to read the analog output, as Raspberry Pi does not have built-in analog input pins.
Q: What is the lifespan of the sensor?
A: The lifespan depends on usage and environmental conditions. Proper cleaning and avoiding prolonged exposure to water can extend its life.
Q: Can the sensor measure moisture in liquids?
A: No, the sensor is designed for soil moisture measurement and may not provide accurate readings in liquids.
Q: How do I calibrate the sensor?
A: Use the onboard potentiometer to adjust the digital output threshold. For analog output, you can map the sensor's voltage range to specific moisture levels in your code.