Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use MKE-S13 Soil Moisture Sensor: Examples, Pinouts, and Specs

Image of MKE-S13 Soil Moisture Sensor
Cirkit Designer LogoDesign with MKE-S13 Soil Moisture Sensor in Cirkit Designer

Introduction

The MKE-S13 Soil Moisture Sensor is an electronic device designed to measure the moisture content in soil. It is an invaluable tool for agriculture, gardening, and any application where monitoring water content is crucial for plant health. By providing accurate and real-time data on soil moisture levels, the MKE-S13 helps in optimizing irrigation schedules, conserving water, and improving plant growth.

Explore Projects Built with MKE-S13 Soil Moisture Sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino UNO Based Automated Soil Moisture Monitoring and Water Pump Control System
Image of Smart Plant watering machine: A project utilizing MKE-S13 Soil Moisture Sensor in a practical application
This circuit is designed to monitor soil moisture levels using an MKE-S13 Soil Moisture Sensor and control a water pump via a 2-channel relay based on the moisture data. The Arduino UNO reads the sensor data and activates the pump when the soil moisture falls below a predefined threshold. An LCD I2C display is likely used to show the moisture levels or system status, and the system is powered by a 9V battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Wi-Fi Enabled Soil Moisture Monitoring System with NodeMCU and Soil Moisture Sensor
Image of soil moisture sensor with Node MCU: A project utilizing MKE-S13 Soil Moisture Sensor in a practical application
This circuit is a soil moisture monitoring system that uses a soil moisture sensor connected to a Soil Moisture Module, which in turn interfaces with a NodeMCU V3 ESP8266 microcontroller. The system is powered by a 12V power supply regulated through a buck converter, and it reads soil moisture levels, converting them to a percentage and transmitting the data via the microcontroller.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Based Soil Moisture Monitoring with I2C LCD Display
Image of spa project : A project utilizing MKE-S13 Soil Moisture Sensor in a practical application
This circuit features an Arduino UNO microcontroller connected to a DFRobot Capacitive Soil Moisture Sensor and an MKE-M08 LCD2004 I2C Module. The soil moisture sensor's analog output is connected to the Arduino's A0 pin for moisture level readings, while the LCD module is interfaced via I2C (SCL and SDA) for display purposes. The Arduino is programmed to read the moisture levels and potentially display the readings on the LCD screen.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Automated Soil Moisture Monitoring and Watering System
Image of ecs project-1: A project utilizing MKE-S13 Soil Moisture Sensor in a practical application
This is an automated plant watering system that uses an ESP32 microcontroller to read soil moisture and temperature/humidity data, and controls a water pump through a relay to water plants as needed. The system is powered by a breadboard power supply module.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with MKE-S13 Soil Moisture Sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Smart Plant watering machine: A project utilizing MKE-S13 Soil Moisture Sensor in a practical application
Arduino UNO Based Automated Soil Moisture Monitoring and Water Pump Control System
This circuit is designed to monitor soil moisture levels using an MKE-S13 Soil Moisture Sensor and control a water pump via a 2-channel relay based on the moisture data. The Arduino UNO reads the sensor data and activates the pump when the soil moisture falls below a predefined threshold. An LCD I2C display is likely used to show the moisture levels or system status, and the system is powered by a 9V battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of soil moisture sensor with Node MCU: A project utilizing MKE-S13 Soil Moisture Sensor in a practical application
Wi-Fi Enabled Soil Moisture Monitoring System with NodeMCU and Soil Moisture Sensor
This circuit is a soil moisture monitoring system that uses a soil moisture sensor connected to a Soil Moisture Module, which in turn interfaces with a NodeMCU V3 ESP8266 microcontroller. The system is powered by a 12V power supply regulated through a buck converter, and it reads soil moisture levels, converting them to a percentage and transmitting the data via the microcontroller.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of spa project : A project utilizing MKE-S13 Soil Moisture Sensor in a practical application
Arduino UNO Based Soil Moisture Monitoring with I2C LCD Display
This circuit features an Arduino UNO microcontroller connected to a DFRobot Capacitive Soil Moisture Sensor and an MKE-M08 LCD2004 I2C Module. The soil moisture sensor's analog output is connected to the Arduino's A0 pin for moisture level readings, while the LCD module is interfaced via I2C (SCL and SDA) for display purposes. The Arduino is programmed to read the moisture levels and potentially display the readings on the LCD screen.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ecs project-1: A project utilizing MKE-S13 Soil Moisture Sensor in a practical application
ESP32-Based Automated Soil Moisture Monitoring and Watering System
This is an automated plant watering system that uses an ESP32 microcontroller to read soil moisture and temperature/humidity data, and controls a water pump through a relay to water plants as needed. The system is powered by a breadboard power supply module.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Agriculture: Monitoring field conditions to optimize irrigation.
  • Gardening: Ensuring plants receive the correct amount of water.
  • Landscaping: Maintaining health of lawns and ornamental plants.
  • Environmental Monitoring: Studying soil moisture trends over time.

Technical Specifications

Key Technical Details

  • Operating Voltage: 3.3V to 5V
  • Current Consumption: 5mA (typical)
  • Analog Output Voltage: 0V to 3.0V (corresponding to dry to wet soil)
  • Digital Output: TTL, High/Low moisture threshold adjustable via onboard potentiometer
  • Operating Temperature Range: -10°C to +70°C

Pin Configuration and Descriptions

Pin Number Name Description
1 VCC Power supply (3.3V to 5V)
2 GND Ground connection
3 AOUT Analog output signal
4 DOUT Digital output signal

Usage Instructions

How to Use the Component in a Circuit

  1. Power Connection: Connect the VCC pin to a 3.3V or 5V power supply and the GND pin to the ground.
  2. Output Connection: Connect the AOUT pin to an analog input on your microcontroller to read the moisture level as an analog value. Alternatively, connect the DOUT pin to a digital input if you wish to use the digital output with a threshold.
  3. Adjusting Sensitivity: Use the onboard potentiometer to set the threshold for the digital output. Turn clockwise to increase the threshold (less sensitive) and counterclockwise to decrease it (more sensitive).

Important Considerations and Best Practices

  • Avoid submerging the sensor completely in water or exposing it to moisture for extended periods to prevent corrosion.
  • Insert the sensor into the soil up to the indicated line to avoid damaging the electronics.
  • Calibrate the sensor for your specific soil type to ensure accurate readings.
  • Use a pull-up resistor if you experience erratic readings from the digital output.

Example Code for Arduino UNO

// Define the sensor pin
const int moistureSensorPin = A0; // Analog input pin that the sensor is attached to
const int sensorPowerPin = 7;     // Digital pin to power the sensor

void setup() {
  Serial.begin(9600);             // Start serial communication at 9600 baud
  pinMode(sensorPowerPin, OUTPUT);// Set the sensor power pin as an output
}

void loop() {
  digitalWrite(sensorPowerPin, HIGH); // Turn the sensor on
  delay(10);                          // Wait 10 milliseconds for stabilization
  int sensorValue = analogRead(moistureSensorPin); // Read the analog value
  digitalWrite(sensorPowerPin, LOW);  // Turn the sensor off
  Serial.println(sensorValue);        // Print the sensor value to the serial monitor
  delay(1000);                        // Wait a second before the next reading
}

Note: The sensor is powered on and off for each reading to prevent corrosion due to electrolysis.

Troubleshooting and FAQs

Common Issues

  • Inconsistent Readings: Ensure the sensor is inserted into the soil properly and that the soil is not too dry or too wet.
  • Sensor Corrosion: Minimize the time the sensor is powered to reduce the risk of corrosion.
  • No Readings: Check all connections and ensure the sensor is powered.

Solutions and Tips for Troubleshooting

  • Calibration: Test the sensor in soil with known moisture levels and adjust the potentiometer accordingly.
  • Connection Check: Verify that all pins are correctly connected to the microcontroller and that there are no loose wires.
  • Code Debugging: Ensure the code uploaded to the microcontroller is correct and that the correct pin numbers are used.

FAQs

Q: Can the sensor be left in the soil permanently? A: It is not recommended to leave the sensor in the soil permanently due to the risk of corrosion. Only insert it when taking measurements.

Q: Is the sensor waterproof? A: The sensor probe is water-resistant but the electronic components are not waterproof. Do not submerge the entire sensor.

Q: How do I clean the sensor? A: Gently wipe the probe with a damp cloth and make sure it is dry before inserting it back into the soil.

Q: What is the accuracy of the sensor? A: The accuracy can vary depending on soil type and proper calibration. It is suitable for relative moisture measurement but not for scientific precision.

This documentation provides a comprehensive guide to using the MKE-S13 Soil Moisture Sensor. For further assistance, contact the manufacturer or refer to the community forums.