The soil moisture sensor is commonly used in smart agriculture or other garden automation projects to measure the moisture content present in the soil. It consists of 4 pins in which two pins, Vcc and Gnd are connected to supply voltage. The remaining two pins are digital (D0) and analog (A0) are the output pins. When the moisture content present in the soil goes beyond the threshold level, the output of the digital pin (D0) will go low (the output of the digital pin is either logic 0 or 1). The threshold value of the sensor module can be set by varying the onboard potentiometer. The analog output pin can be used to calculate the approximate level of moisture content present in the soil.
When purchased, a single unit of soil moisture sensor module will be shipped with the sensor probes and the measurement module. The sensor probe will be dipped in the soil and connected to the measurement module. The measurement module will compare the measured value with the set threshold value (can be set using 10k pot) using the LM393 OP-Amp comparator and provide output on the digital pin. Both the sensor probe and measurement module is shown below.

Because of the presence of the onboard Lm393 comparator circuit, you can also directly use the soil moisture sensor in your project without connecting a microcontroller unit (MCU) to it. When the moisture content of the soil is higher than the threshold value, the digital output of the moisture sensor is logic 0 (0V). The output from the digital pin can be used to drive an LED or a buzzer circuit.
You can also connect the Digital and Analog Output pins with a microcontroller like Arduino to built measure and monitor the soil moisture sensor and build interesting projects.

Additional Resources
Due to the type of products we sell, we accept limited returns. Below are the conditions where we can accept a return request.
If you receive a product damaged during shipment, please notify us within 3 days of receiving the product, supported by proper pictures and a description. Once our support team accepts the return, we will provide a replacement or a complete refund, including the return shipping cost.
If your item looks different from what is shown in the image on our website, we will take the item back and provide a refund or replacement as per your choice.
We don’t accept returns for products damaged due to improper use. Moreover, we don’t accept returns if the ordered product is not suitable for a specific application. Please read the product specifications and datasheet carefully before placing an order. Returns are accepted only within 3 days from the date of delivery.
We ship all over India with free shipping on all prepaid orders above ₹500. For Cash on Delivery (COD) orders, ₹80 will be charged for orders below ₹599 and ₹30 for orders above ₹599.
For any questions related to shipping, please contact our support team at support@quartzcomponents.com.
Note: The minimum order value for COD orders is ₹500.