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

How to Use SEN0159: Examples, Pinouts, and Specs

Image of SEN0159
Cirkit Designer LogoDesign with SEN0159 in Cirkit Designer

Introduction

The SEN0159 is a capacitive soil moisture sensor manufactured by DFRobot (Part ID: 1738-1125-ND). This sensor is designed to measure the volumetric water content in soil using capacitive sensing technology. Unlike resistive soil moisture sensors, the SEN0159 is corrosion-resistant, ensuring a longer lifespan and reliable performance in outdoor environments.

This sensor outputs an analog voltage that corresponds to the soil's moisture level, making it easy to interface with microcontrollers such as Arduino. It is widely used in agricultural applications, automated irrigation systems, and environmental monitoring projects.

Explore Projects Built with SEN0159

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Battery-Powered Emergency Alert System with NUCLEO-F072RB, SIM800L, and GPS NEO 6M
Image of women safety: A project utilizing SEN0159 in a practical application
This circuit is an emergency alert system that uses a NUCLEO-F072RB microcontroller to send SMS alerts and make calls via a SIM800L GSM module, while obtaining location data from a GPS NEO 6M module. The system is powered by a Li-ion battery and includes a TP4056 module for battery charging and protection, with a rocker switch to control power to the microcontroller.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO-Based Water Quality Monitoring System with TDS Sensor and SIM900A SMS Alerts
Image of WaterQuality: A project utilizing SEN0159 in a practical application
This circuit is a water quality monitoring system using an Arduino Uno, which reads TDS values from a TDS sensor and displays the results on a 16x2 I2C LCD. A green LED indicates good water quality, while a SIM900A module sends an SMS alert if the water quality is poor.
Cirkit Designer LogoOpen Project in Cirkit Designer
Solar-Powered Environmental Monitoring Station with GSM Reporting
Image of thesis nila po: A project utilizing SEN0159 in a practical application
This is a solar-powered monitoring and control system with automatic power source selection, environmental sensing, and communication capabilities. It uses an ESP32 microcontroller to process inputs from gas, flame, and temperature sensors, and to manage outputs like an LCD display, LEDs, and a buzzer. The system can communicate via a SIM900A module and switch between solar and AC power sources using an ATS.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Environmental Monitoring System with Multiple Sensors and OLED Display
Image of meat_spoilage: A project utilizing SEN0159 in a practical application
This circuit is an environmental monitoring system that uses an ESP32 microcontroller to collect data from various sensors, including gas sensors (MQ-135, MQ-136), a humidity and temperature sensor (DHT11), a VOC and NOx sensor (SGP41), and a color sensor (TCS230). The collected data is displayed on an OLED screen and can be transmitted via Bluetooth, with the ESP32 also handling RF signal decoding and transmission.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with SEN0159

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 women safety: A project utilizing SEN0159 in a practical application
Battery-Powered Emergency Alert System with NUCLEO-F072RB, SIM800L, and GPS NEO 6M
This circuit is an emergency alert system that uses a NUCLEO-F072RB microcontroller to send SMS alerts and make calls via a SIM800L GSM module, while obtaining location data from a GPS NEO 6M module. The system is powered by a Li-ion battery and includes a TP4056 module for battery charging and protection, with a rocker switch to control power to the microcontroller.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of WaterQuality: A project utilizing SEN0159 in a practical application
Arduino UNO-Based Water Quality Monitoring System with TDS Sensor and SIM900A SMS Alerts
This circuit is a water quality monitoring system using an Arduino Uno, which reads TDS values from a TDS sensor and displays the results on a 16x2 I2C LCD. A green LED indicates good water quality, while a SIM900A module sends an SMS alert if the water quality is poor.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of thesis nila po: A project utilizing SEN0159 in a practical application
Solar-Powered Environmental Monitoring Station with GSM Reporting
This is a solar-powered monitoring and control system with automatic power source selection, environmental sensing, and communication capabilities. It uses an ESP32 microcontroller to process inputs from gas, flame, and temperature sensors, and to manage outputs like an LCD display, LEDs, and a buzzer. The system can communicate via a SIM900A module and switch between solar and AC power sources using an ATS.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of meat_spoilage: A project utilizing SEN0159 in a practical application
ESP32-Based Environmental Monitoring System with Multiple Sensors and OLED Display
This circuit is an environmental monitoring system that uses an ESP32 microcontroller to collect data from various sensors, including gas sensors (MQ-135, MQ-136), a humidity and temperature sensor (DHT11), a VOC and NOx sensor (SGP41), and a color sensor (TCS230). The collected data is displayed on an OLED screen and can be transmitted via Bluetooth, with the ESP32 also handling RF signal decoding and transmission.
Cirkit Designer LogoOpen Project in Cirkit Designer

Technical Specifications

Below are the key technical details of the SEN0159:

Parameter Value
Operating Voltage 3.3V - 5.5V
Output Voltage Range 0V - 3.0V (analog output)
Current Consumption < 20mA
Interface Type Analog
Dimensions 98mm x 23mm
Operating Temperature -40°C to 85°C
Sensor Type Capacitive
Cable Length 1 meter

Pin Configuration

The SEN0159 has a 3-pin interface. The pinout is as follows:

Pin Name Description
1 VCC Power supply input (3.3V to 5.5V)
2 GND Ground connection
3 AOUT Analog output voltage proportional to soil moisture

Usage Instructions

Connecting the SEN0159 to a Circuit

  1. Power Supply: Connect the VCC pin to a 3.3V or 5V power source, depending on your microcontroller's operating voltage.
  2. Ground: Connect the GND pin to the ground of your circuit.
  3. Analog Output: Connect the AOUT pin to an analog input pin on your microcontroller (e.g., A0 on an Arduino UNO).

Example Arduino UNO Code

The following code demonstrates how to read the analog output of the SEN0159 using an Arduino UNO and display the soil moisture level on the Serial Monitor.

// Define the analog pin connected to the SEN0159 sensor
const int sensorPin = A0;

void setup() {
  // Initialize the Serial Monitor for debugging
  Serial.begin(9600);
}

void loop() {
  // Read the analog value from the sensor
  int sensorValue = analogRead(sensorPin);

  // Map the sensor value to a percentage (0% to 100%)
  // Assuming 0 corresponds to dry soil and 1023 to wet soil
  int moisturePercent = map(sensorValue, 0, 1023, 0, 100);

  // Print the sensor value and moisture percentage to the Serial Monitor
  Serial.print("Analog Value: ");
  Serial.print(sensorValue);
  Serial.print(" | Soil Moisture: ");
  Serial.print(moisturePercent);
  Serial.println("%");

  // Wait for 1 second before the next reading
  delay(1000);
}

Important Considerations

  • Calibration: The sensor's output may vary depending on the soil type. It is recommended to calibrate the sensor for your specific soil conditions by testing it in dry and fully saturated soil.
  • Placement: Insert the sensor into the soil vertically, ensuring the sensing area is fully covered by soil for accurate readings.
  • Power Supply: Use a stable power source to avoid fluctuations in the analog output.
  • Waterproofing: While the sensor is corrosion-resistant, avoid submerging the entire sensor in water. Only the sensing area should be in contact with the soil.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output or Incorrect Readings:

    • Ensure the sensor is properly connected to the power supply and ground.
    • Verify that the AOUT pin is connected to an analog input pin on the microcontroller.
    • Check for loose or damaged wires.
  2. Fluctuating Readings:

    • Use a decoupling capacitor (e.g., 0.1µF) between the VCC and GND pins to stabilize the power supply.
    • Ensure the sensor is inserted firmly into the soil.
  3. Low Sensitivity:

    • Calibrate the sensor for your specific soil type.
    • Ensure the sensing area is clean and free of debris.
  4. Sensor Not Responding:

    • Verify that the operating voltage is within the specified range (3.3V to 5.5V).
    • Test the sensor with a multimeter to check for any hardware faults.

FAQs

Q: Can the SEN0159 be used with a Raspberry Pi?
A: Yes, the SEN0159 can be used with a Raspberry Pi. However, since the Raspberry Pi does not have built-in analog input pins, you will need an external ADC (Analog-to-Digital Converter) module to read the sensor's output.

Q: How do I interpret the analog output voltage?
A: The analog output voltage is proportional to the soil moisture level. A higher voltage indicates wetter soil, while a lower voltage indicates drier soil. You can map the voltage to a percentage for easier interpretation.

Q: Is the SEN0159 suitable for outdoor use?
A: Yes, the SEN0159 is corrosion-resistant and can be used outdoors. However, it is recommended to protect the wiring and connections from water exposure.

Q: Can the sensor measure moisture in other materials?
A: The SEN0159 is optimized for soil moisture measurement. While it may work with other porous materials, the readings may not be accurate without proper calibration.

By following this documentation, you can effectively integrate the SEN0159 into your projects and ensure reliable soil moisture measurements.