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.
You must report any damage within 3 days of receiving the product. Please send clear pictures of the damaged item and packaging along with a short description. Once our support team accepts the claim, we will arrange a replacement or a full refund, including return shipping costs.
If the item you received is different from what is shown on our website, you must report it within 3 days of receiving the product. Please send a video of the first-time unboxing that clearly shows the sealed package, the opening process, and the products received, along with clear pictures and a short description of the issue. Once our support team verifies the claim, we will accept the return and provide a refund or replacement as per your choice.
If the product is defective or not functioning as described, please notify us within 3 days of receiving the product. Include proper pictures, a short video, and a description of the issue. Once our support team verifies the defect, we will provide a replacement or a complete refund, including the return shipping cost.
If any item or accessory listed on the order is missing from the package, you must notify us within 3 days of receiving the product. You are required to record a proper video while unboxing the package for the first time (showing the sealed package, opening process, and all contents). Please also share pictures of the received items and the packing list or invoice. Once our support team confirms the missing item, we will ship the missing item at no extra cost or issue a partial refund.
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.