Soil Moisture Sensor for Arduino
Original price was: ৳ 150.৳ 100Current price is: ৳ 100.
- Sensor Type: Resistive soil moisture sensor.
- Operating Voltage: 3.3V–5V DC.
- Output Signals: Analog (AO) and Digital (DO).
- Comparator IC: LM393.
- Adjustable Threshold: Onboard potentiometer.
31 in stock
Soil Moisture Sensor for Arduino Price in Bangladesh
The Soil Moisture Sensor for Arduino is a useful electronic component for measuring the moisture condition of soil in gardening, agriculture, plant monitoring, and automatic irrigation applications. It allows microcontrollers to detect whether soil is dry, moderately moist, or wet by measuring changes in electrical conductivity between two conductive probes inserted into the soil.
Commonly known as the FC-28 or YL-69 soil moisture sensor, this module is widely used in Arduino-based electronics projects because of its simple operation, low cost, and convenient interface. It generally consists of two parts: a fork-shaped sensing probe and a small comparator circuit board.
The sensing probe is inserted into the soil, where its two conductive electrodes detect changes in electrical resistance. When the soil contains more water, its electrical conductivity generally increases, reducing the resistance between the electrodes. When the soil becomes dry, conductivity decreases and resistance increases.
The comparator board processes the sensor signal and provides two output options: analog and digital. The analog output allows an Arduino to read changing moisture-related values, while the digital output provides a simple HIGH or LOW signal based on an adjustable threshold.
This makes the sensor suitable for beginners learning Arduino programming as well as students and developers building smart gardening systems, automatic plant watering devices, and agricultural monitoring prototypes.
What Is a Soil Moisture Sensor?
A soil moisture sensor is an electronic device used to estimate the amount of water present in soil. It detects changes in an electrical property of the soil and converts those changes into an electrical signal that can be interpreted by a microcontroller.
The FC-28 is a resistive-type soil moisture sensor. It works by measuring the electrical conductivity between two metal electrodes. Since water containing dissolved minerals and salts can conduct electricity, the electrical resistance between the electrodes changes according to soil moisture conditions.
The sensor does not directly measure the exact volumetric water content of soil. Instead, it provides a relative moisture indication. Calibration is necessary if readings are to be converted into useful moisture percentages.
Key Features of the Soil Moisture Sensor
1. Soil Moisture Detection
The two-prong probe detects changes in soil conductivity. By inserting the probe into soil, users can monitor relative moisture conditions and determine when plants may need watering.
2. Analog Output for Continuous Monitoring
The analog output (AO) provides a changing voltage based on the moisture condition detected by the probe. An Arduino can read this signal using its analog input and display the readings through the Serial Monitor, LCD, OLED, or TFT display.
This mode is especially useful when a project requires more than a simple wet-or-dry indication.
3. Digital Output with Adjustable Threshold
The module includes an LM393 comparator and an onboard potentiometer. The potentiometer allows users to adjust the moisture threshold at which the digital output changes state.
This feature is useful for automatic watering systems where the Arduino needs to detect when soil becomes sufficiently dry.
4. LM393 Comparator Circuit
The LM393 comparator processes the sensor’s electrical signal and compares it with the reference level selected through the potentiometer. Its digital output allows simple moisture detection without requiring the microcontroller to perform an analog comparison.
5. Arduino Compatibility
The module can be connected to Arduino UNO, Arduino Nano, and other compatible development boards. It can also be used with ESP32, ESP8266, STM32, and similar microcontrollers, provided their input voltage limits are respected.
6. Simple Installation
The sensing probe can be inserted directly into soil, and the comparator board connects to a microcontroller through four common pins: VCC, GND, AO, and DO.
7. Useful for Automatic Irrigation
The sensor can be integrated with a relay module, MOSFET driver, or suitable motor driver to control a water pump when the soil becomes dry.
8. Low-Cost Project Development
Its straightforward operation makes it a practical component for school projects, university experiments, gardening prototypes, and beginner-level embedded systems.
Technical Specifications
| Parameter | Specification |
|---|---|
| Product Name | Soil Moisture Sensor |
| Common Model | FC-28 / YL-69 |
| Sensor Type | Resistive |
| Sensing Method | Electrical conductivity |
| Operating Voltage | 3.3V–5V DC |
| Comparator IC | LM393 |
| Output Type | Analog and Digital |
| Analog Output | AO |
| Digital Output | DO |
| Threshold Adjustment | Onboard potentiometer |
| Indicator | Power and digital status LEDs (board-dependent) |
| Probe Design | Two-prong conductive probe |
| Interface | Analog input / Digital GPIO |
| Compatible Boards | Arduino, ESP32, ESP8266, STM32 |
| Calibration | Recommended |
| Measurement Type | Relative soil moisture indication |
Note: Current consumption, probe dimensions, output voltage, electrode coating, and PCB layout can vary between manufacturers and versions. These are typical FC-28/YL-69 family specifications, not guaranteed values for every board.
Pin Configuration
The common FC-28 comparator module provides four connection pins.
| Pin | Function | Description |
|---|---|---|
| VCC | Power Supply | Connect to 3.3V or 5V, as supported |
| GND | Ground | Connect to common ground |
| AO | Analog Output | Sends variable moisture-related voltage |
| DO | Digital Output | Sends threshold-based HIGH/LOW signal |
The analog output is useful for monitoring changing readings, while the digital output is useful for simple threshold-based control.
Arduino UNO Connection
The following connection can be used to read the analog output.
| Soil Moisture Sensor | Arduino UNO |
|---|---|
| VCC | 5V |
| GND | GND |
| AO | A0 |
| DO | Not connected |
For digital threshold detection, connect DO to a digital input pin such as D2 instead of relying only on AO.
Sample Arduino Code for Soil Moisture Monitoring
The following example reads the analog output and displays the raw sensor value in the Serial Monitor.
const int soilSensor = A0;
void setup() {
Serial.begin(9600);
}
void loop() {
int moistureValue = analogRead(soilSensor);
Serial.print("Soil Moisture Reading: ");
Serial.println(moistureValue);
delay(1000);
}
For an Arduino UNO with its default 10-bit ADC, the raw reading typically ranges from 0 to 1023. With this common resistive sensor arrangement, readings generally decrease as soil becomes wetter.
Important: Raw values depend on the individual sensor, soil type, salinity, probe placement, and supply voltage. Record readings in dry and suitably moist soil to establish calibration values for your application.
Working Principle
The FC-28 soil moisture sensor operates using the principle of electrical resistance and conductivity.
The two conductive probes are inserted into the soil. The soil between these electrodes acts as a variable resistance. When the soil is dry, its electrical conductivity is generally low, resulting in higher resistance. When moisture increases, conductivity generally improves and resistance decreases.
The sensing circuit converts this resistance change into an analog electrical signal. This signal is available at the AO pin and can be measured by an Arduino analog-to-digital converter.
The LM393 comparator on the module also compares the analog signal against a reference threshold. The threshold can be adjusted using the onboard potentiometer. When the measured signal crosses the selected threshold, the digital output changes state.
The microcontroller can then use the readings to display moisture information, activate an indicator, or control an irrigation system.
Applications
1. Automatic Plant Watering System
Use the sensor with Arduino and a relay-controlled water pump to activate watering when soil moisture falls below a selected threshold.
2. Smart Gardening Projects
Monitor the moisture condition of indoor plants, flower pots, and small home gardens.
3. Agricultural Monitoring
Develop experimental systems for monitoring soil conditions in small agricultural plots and plant-growing environments.
4. Greenhouse Automation
Integrate the sensor into a prototype greenhouse monitoring system to detect dry soil and initiate irrigation actions.
5. Arduino Learning Projects
Learn analog input, digital output, sensor calibration, comparator operation, and basic automation.
6. IoT Plant Monitoring
Connect the sensor to ESP32 or ESP8266 to transmit soil moisture readings to an online dashboard or mobile application.
7. Science Fair Projects
Use it in smart agriculture, automated irrigation, and plant monitoring demonstrations.
8. Educational Research
Study the relationship between soil moisture, electrical conductivity, and sensor response under different experimental conditions.
Advantages
- Simple and beginner-friendly operation.
- Supports both analog and digital output.
- Adjustable digital detection threshold.
- Compatible with common Arduino development boards.
- Low-cost solution for basic soil moisture monitoring.
- Easy integration with relay and pump control circuits.
- Useful for educational, experimental, and prototype applications.
- Requires no complicated software library for basic operation.
Limitations and Considerations
The FC-28 is a resistive sensor, so its exposed conductive electrodes can corrode over time when continuously powered in moist soil. This may affect measurement stability and shorten the probe’s service life.
The sensor measures electrical conductivity rather than directly measuring volumetric water content. Soil composition, fertilizer concentration, salinity, temperature, and probe placement can influence readings.
For long-term monitoring, avoid leaving the probe continuously powered. A better approach is to switch its supply on only when taking measurements, using a suitable transistor or MOSFET circuit.
For more durable installations, a capacitive soil moisture sensor is generally a better option because it avoids passing sensing current directly between exposed electrodes.
Installation and Usage Tips
- Insert the sensing probe into the soil without immersing the comparator PCB.
- Connect VCC and GND to a suitable power source.
- Connect AO to an Arduino analog input for continuous readings.
- Open the Serial Monitor to observe the raw sensor values.
- Record readings in dry and moist soil to establish calibration limits.
- Adjust the onboard potentiometer when using the digital output.
- Keep the comparator board protected from water and excessive humidity.
- Avoid leaving the resistive probe continuously powered.
- Clean the probe carefully after use and inspect it for corrosion.
- For automatic irrigation, use a properly rated relay or MOSFET driver rather than powering a water pump directly from an Arduino pin.
Why Choose the Soil Moisture Sensor for Arduino?
The Soil Moisture Sensor is a practical choice for anyone developing plant monitoring, smart gardening, or automatic irrigation projects. Its analog and digital outputs provide flexibility for different project requirements, while the adjustable comparator makes basic moisture-based switching straightforward.
Whether you are learning Arduino programming, developing a university project, or building an experimental smart agriculture system, this sensor provides an accessible way to explore soil moisture detection and automation.
Why Buy from ElectroXBD?
ElectroXBD supplies electronic components, sensors, robotics parts, development boards, and project materials for students, engineers, makers, and electronics enthusiasts across Bangladesh.
We support electronics learning, prototype development, university projects, and practical embedded system applications.
- Electronic components for Arduino and robotics projects.
- Sensors and modules for automation and IoT development.
- Convenient ordering through our online store.
- Project components for students, engineers, and makers.
Order your Soil Moisture Sensor for Arduino from ElectroXBD.
Website: https://electroxbd.com
Contact / WhatsApp: 01600334238
Email: electroxbd@gmail.com
Shop Address: H#1/1, Opposite of RH Chhatrabash, Vodra-Talaimari Road, Rajshahi, Bangladesh.
Frequently Asked Questions (FAQ)
1. What is a Soil Moisture Sensor used for?
A soil moisture sensor detects the relative moisture condition of soil. It is commonly used in automatic plant watering systems, smart gardening, agricultural monitoring, and Arduino projects.
2. Is this soil moisture sensor compatible with Arduino UNO?
Yes. The FC-28 soil moisture sensor can be connected to Arduino UNO through its analog or digital output pins.
3. What is the operating voltage of the FC-28 sensor?
The common FC-28 module operates with a 3.3V–5V DC supply. Always verify the specifications of the actual module before connecting it.
4. What is the difference between AO and DO pins?
AO provides an analog signal that changes according to soil moisture, while DO provides a digital HIGH or LOW signal based on the threshold adjusted using the onboard potentiometer.
5. What does the LM393 IC do in this module?
The LM393 comparator compares the sensor signal with an adjustable reference level and generates a digital output when the selected threshold is crossed.
6. Can this sensor control an automatic watering system?
Yes. It can be connected to an Arduino and a suitable relay or MOSFET driver to switch a water pump when the soil becomes dry.
7. Does the soil moisture sensor provide an accurate moisture percentage?
No. It provides a relative electrical reading rather than a direct measurement of volumetric water content. Calibration is necessary to estimate meaningful moisture levels for a particular soil and setup.
8. Why do the sensor probes become rusty or corroded?
The FC-28 uses exposed conductive electrodes. Continuous electrical current through moist soil can cause electrochemical corrosion over time. Switching the sensor power on only during measurements can help reduce this problem.
9. Can I use this sensor with ESP32 or ESP8266?
Yes. Both development boards can read the sensor’s analog output, provided the output voltage does not exceed the ADC input limits. Use appropriate voltage compatibility precautions.
10. Where can I buy a Soil Moisture Sensor for Arduino in Bangladesh?
You can buy the Soil Moisture Sensor for Arduino from ElectroXBD, a trusted electronics components supplier in Bangladesh.

Common Questions:
What is the price of Soil Moisture Sensor for Arduino in Bangladesh?
The latest price of Soil Moisture Sensor for Arduino in Bangladesh is 100BDT.
Where to buy Soil Moisture Sensor for Arduino in Bangladesh?
You can buy the Soil Moisture Sensor for Arduino at the best price from ElectroXBD in Bangladesh.
How to use with Arduino? Check here
Only logged in customers who have purchased this product may leave a review.







Reviews
There are no reviews yet.