• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Sensors and Detectors / Simple Soil Moisture Tester Circuit with a Single IC 741

Simple Soil Moisture Tester Circuit with a Single IC 741

Last Updated on January 4, 2024 by Swagatam 49 Comments

A very simple mud or soil moisture tester circuit can be built by using a single opamp and a few passive components, I have explained the details through the following article.

Table of Contents
  • Circuit Objective
  • Circuit Operation
  • How to use the Circuit as a Soil Moisture Controller
  • Using Iron Nails as Probes
  • Moisture Sensor using Copper/Zinc Mesh which works like Electricity Generator
  • Soil Moisture Sensor with Motor Pump Control

Circuit Objective

After water and sunlight the earth or the soil is the next most important natural gift that this planet has provided us with, without which persisting of the living beings could never be possible.

Soil produces plants, and plants supply us food. However plants need a well watered soil, or in other words plants or crops cannot survive without an optimal supply of water to the soil in which they grow.

Therefore testing the correct soil moisture becomes a crucial aspect in order to cultivate healthy crops without wasting excess water.

A simple soil moisture tester circuit explained can be used by anybody who may be interested to check or monitor the moisture level of a given area of land and ensure the correct amount of water supply to it, either manually or automatically through the same circuit.

So we have both the options available with this circuit, it enables the user to test the level of moisture of the soil, and if required make the unit an automatic soil moisture level controller by connecting a motor pump with the attached relay contacts in the circuit.

Circuit Operation

Let's see how the circuit is designed to function:

Soil Moisture Tester Circuit

Referring to the circuit above, the design makes use of a single IC 741 opamp comparator for the required testing function.

The pin3 which is the non-inverting input of the opamp is used as the main sensor probe with respect to the other probe connected with the ground.

The moisture level present in the soil develops a resistance across it which increases with a decrease in the moisture level and decreases with an increase in the moisture level, meaning a wet soil will have a much lower resistance compared to a dryer soil.

This aspect is exploited in the design the probes are used to test the soil resistance between pin#3 and ground of the comparator IC 741.

This soil resistance forms a potential divider with the 100K resistor connected across the positive supply line and pin#3 of the IC, and the potential difference developed here in response to the soil moisture level is compared by the potential at pin#2.

Pin#2 potential is determined by the setting the shown 100k pot. Thus this pot is effectively used for determining or verifying the exact moisture present in the soil.

If the soil moisture produces a lower resistance at pin#3 than the set level at pin#2, the output at pin#6 is rendered low, meaning when the soil is relatively wet the output of the opamp shows a zero volt, while in case the soil condition develops a higher resistance (dry condition) then the output of the opamp goes positive, triggering the connected transistor and the relay.

In other words, the output of the opamp and the relay stay switched OFF as long as as the soil moisture level is more than the threshold set by the pin#2 pot, and vice versa. Therefore a relatively wet soil will keep the relay switched OFF, and a dry soil will switch it ON.

The LED complements the relay action and illuminates whenever the soil is dry than the desired set level.

This pot needs to be appropriately calibrated with a dial and then the various points across the dial marked as per the predetermined moisture content of a sample soil collected inside a container.

Once this is done, the calibrated pot can be used for checking any soil by simply inserting the shown probes into the soil, and by adjusting the pot until the output is rendered a high (LED ON).

How to use the Circuit as a Soil Moisture Controller

As explained above, once the pot is set to a desired value, whenever the soil moisture goes below this set level, the relay is instantly activated.

In the switched ON position the relay contacts join the N/O contacts, and these contacts could be wired to a water pump and its power supply in series, so that whenever the relay clicks, the motor pump is activated and the soil begins getting the required water supply until its moisture level is restored to the desired optimal point.

At this level the opamp detects the condition and quickly changes over to a zero logic at its output, switching OFF the relay and the motor, the water spraying is consequently stopped.

The above action keeps repeating by testing the soil moisture and applying water accordingly, in an entirely automated way without any manual intervention.

Using Iron Nails as Probes

For the sensor probes you can simply use a pair of good quality galvanized iron nails which can be around 6 inches long, as shown in the following image. Solder the sensor wires from the op amp circuit with the nails and push the nails at least 5 inches deep inside the soil. Make sure the distance between the probes is not more than 3 inches wide, inside the soil.

soil moisture probes

Moisture Sensor using Copper/Zinc Mesh which works like Electricity Generator

The idea was suggested by one of the avid readers of this blog, Mr. Doug:

I have what I suspect is an impossible circuit, but want to run it pass you to confirm.
I am sure you have knowledge of a simple moisture tester. This device uses dissimilar metals generally made up of copper and zinc. These metals when exposed to moisture (water) give a very low electrical current, this is the basis of my question:

I would like to know if there is any circuit and or device that could be powered by say a 3.7vdc lithium Ion battery or a 1.5VDC AAA battery that is basically in the off position, until two leads senses moisture, thereby powering up and indicating by a low volt LED that there is moisture across these 2 “LEADS” dissimilar metals but wouldn’t cause any, “shock” if applied to sensitive skin?

zinc copper water sensor generator circuit

Soil Moisture Sensor with Motor Pump Control

moisture sensor with pump switch ON control

The previous circuit using a single BC547 can be further upgraded into a soil moisture controller circuit with motor pump.

The moisture element can be the same as used in the earlier diagram, consisting of zinc/copper tracks held very close to each other.

As long as there's no moisture in the soil, or the soil is dry, no voltage is fed to the base of the BC547.

Due to this both the transistors are switched OFF, causing the relay to remain switched OFF.

Since the motor pump is connected across the N/C contacts of the motor, the motor pump remains switch ON, so that water can be released into the soil.

When moisture or water droplets is detected across the moisture sensing element, tiny electrical potential is generated across the sensor terminals.

This tiny potential difference is sufficient to trigger ON the BC547 transistor which in turn causes the BC557 to switch ON hard.

The BC557 now turns the relay contacts OFF, which was normally switched ON due to a dry moisture sensor detection.

The relay contacts switch OFF the motor pump. The pump remains OFF as long as the moisture sensor does not become dry again.

The moisture sensor can be inserted deep into the soil whose moisture content needs to be sensed and controlled through the motor pump water.

The pot R4 can be used to adjust the sensitivity of the moisture sensor element.

You'll also like:

  • 1.  Non Contact AC Phase Detector Circuit [Tested]
  • 2.  ACS712 Current Sensor Circuit Diagrams and Datasheet
  • 3.  4 Simple Proximity Sensor Circuits – Using IC LM358, IC LM567, IC 555
  • 4.  Force Sensing Resistor Circuit Explained
  • 5.  Make this Simple Weather Station Project for Homes and Offices
  • 6.  Simple Digital Clock using LM8650 IC Circuit

About Swagatam

I am an electronics engineer with over 15 years of hands-on experience. I am passionate about inventing, designing electronic circuits and PCBs, and helping hobbyists bring their projects to life. That is why I founded homemade-circuits.com, a website where I share innovative circuit ideas and tutorials. Have a circuit related question? Leave a comment.... I guarantee a reply!

Previous Post: « Opamp Hysteresis – Calculations and Design Considerations
Next Post: Camper, Motorhome Battery Charger Circuit »

Reader Interactions

Comments

  1. Leen says

    January 9, 2025 at 12:02 pm

    Hello again thank youu for your reply , im doing a watering system for my circuit project we can only use op amp 741 im trying to do first the water level detection using 3 op amps 3 leds but i want to add a water pump i have a 3 to 5 v submersible water pump to it that turn on when the water is only at the lowest level is there really no way to do that using op amp 741 with a relay or something

    Reply
    • Swagatam says

      January 9, 2025 at 12:26 pm

      Where will you use this circuit, for watering the soil and the the plants?

      Reply
  2. leen haddad says

    January 8, 2025 at 2:53 am

    hello how to do automatic 3v water pump using op amp 741 on a pcb how to add awater indicator to it
    and thank you for your help your a hero

    Reply
    • Swagatam says

      January 8, 2025 at 8:43 am

      Hi, unfortunately the IC 741 cannot work with 3V supply, so I think 741 cannot be used.

      Reply
  3. Sally says

    July 31, 2024 at 7:11 pm

    Hi, is there a way to have 2 LED and 1 Buzzer which will indicate the dry moisture level as your circuit only has one LED which lights up when the moisture level is high (low output) .

    Reply
    • Swagatam says

      August 1, 2024 at 8:12 am

      That’s possible! In the first circuit, remove the existing LED, the transistor, the 10k, the 2.2k and the relay.
      Now a connect an LED between the pin#6 of the op-amp and the positive, and another LED between pin#6 and the ground.
      Both the LEDs must have a 1k resistor in series.
      After this, connect a buzzer between pin#6 and either positive or ground.

      Reply
  4. Johnny says

    May 27, 2020 at 1:56 pm

    Sir can we use LM 1/4 324 insteadof ic 741.

    Reply
    • Swagatam says

      May 27, 2020 at 2:08 pm

      yes you can!

      Reply
  5. Witness says

    December 16, 2019 at 2:39 pm

    Hi Swagatam
    I hope I find you well, I wanted to ask about how long should the leads to the electrodes be? can they be placed far apart inorder to water a fairly large field?

    Reply
    • Swagatam says

      December 16, 2019 at 5:33 pm

      Hi witness, The length of the probes will depend on how deep you wish to test the soil. To increase the distance between the probes you may have to increase the resistance at pin3 appropriately, may be up to 2M2 or more.

      Reply
  6. Mark says

    November 11, 2019 at 2:58 pm

    Hello mr. Swagatam good evening. Can I ask a favor how to make (AVR ) automatic voltage regulator for my refrigerator? Please ✋. Thank you so much ❤️????

    Reply
    • Swagatam says

      November 11, 2019 at 8:16 pm

      Hi Mark, you can try the following design, this should do the job

      https://www.homemade-circuits.com/how-to-make-small-homemade-automatic/

      Reply
  7. Aini says

    November 5, 2019 at 10:01 am

    Sir, what is the function of the op amp in this circuit?

    Reply
    • Swagatam says

      November 5, 2019 at 12:00 pm

      It is a comparator:

      https://www.homemade-circuits.com/comparators-using-ic-741-ic-311-ic-339/

      Reply
  8. Himanshu says

    October 15, 2019 at 5:07 pm

    sir, Which relay you are going to use in this circuit? it is a 6V relay or something else?
    can you please tell me how you connect relay?

    Reply
    • Swagatam says

      October 15, 2019 at 8:01 pm

      Himanshu,

      since the supply is 12V, therefore the relay is also 12V. You ca get more info here:

      https://www.homemade-circuits.com/how-a-relay-works-in-circuits-how-to-connect-it/

      Reply
  9. Andrea says

    September 26, 2016 at 10:38 am

    Sir, did you get my message?

    Reply
  10. Andrea says

    September 26, 2016 at 10:36 am

    What's that 2k2 ohm resistor in the circuit diagram sir? Is that a typographical error? What should it be? 22k ohm or 2.2k ohm resistor? I hope i could get a reply from you ASAP because I am needing this in my project to be submitted next week. Thank you very much sir!

    Reply
    • Swagatam says

      September 26, 2016 at 11:52 am

      Andrea, 2K2 is another way of writing 2.2K

      Reply
  11. Sharoj Al Hasan says

    May 31, 2016 at 1:16 pm

    Sir I Want To Drive A Relay From getting Easy Signal From Ultrasonic Sonar. Abmnd i want to make a easy Circuit. Not Complex
    Please Help ame Sir

    Reply
    • Swagatam says

      June 1, 2016 at 1:30 pm

      Sharoj, it will be a complex circuit as far as I think….cannot be an easy one.

      Reply
  12. Sharoj Al Hasan says

    May 21, 2016 at 2:23 pm

    https://drive.google.com/file/d/0B8k3jWgWe95XTXU3NERYQ0UxZk0/view?usp=sharing

    My Alarm Circuit Work on 9v Battery. And Have a mini Speaker In this Circuit.
    I want to replace The Speaker And Connect the Cable To my Speaker.

    Reply
    • Swagatam says

      May 22, 2016 at 4:18 am

      you can do it…

      Reply
  13. Swagatam says

    May 21, 2016 at 12:10 pm

    stainless steel rods

    Reply
  14. Sharoj Al Hasan says

    May 17, 2016 at 4:07 am

    Sir Can You Please Provide Me Simple Microphone Amplifier Circuit

    Reply
    • Swagatam says

      May 17, 2016 at 7:19 am

      Sharoj, presently I do not have in my website, but you can find many such circuits online.

      Reply
  15. c00e6752-9f70-11e3-b67b-000bcdcb5194 says

    May 12, 2016 at 2:39 am

    can you show how a mini 12v pump can be integrated with this circuit to water plants that are in pots?

    Reply
    • Swagatam says

      May 12, 2016 at 11:15 am

      the relay connections will be similar to the following circuit:

      https://www.homemade-circuits.com/2011/12/how-to-make-simple-water-level.html

      Reply
  16. Sharoj Al Hasan says

    May 10, 2016 at 9:49 am

    Sir I Am Sorry I Couldn't Clear You . Actually I Want To Connect A Speaker with My Siren Out Put . nowadays In Market Very few Speaker Are Selling Called Mobile Phone .
    Thank You Sir

    Reply
    • Swagatam says

      May 11, 2016 at 5:39 am

      sorry, I still did not understand your requirement, do you want to drive an external speaker by providing a music input from your cell phone? in that case you will require an amplifier in the middle.

      Reply
    • Sharoj Al Hasan says

      May 11, 2016 at 5:16 pm

      Sir
      Actually I Want To connect A Sound Box With my Siren Out Put. Then my soundbox willget damage ???

      Reply
    • Swagatam says

      May 12, 2016 at 10:49 am

      If you have an amplifier inside your soundbox then there will be no problem…you can go ahead with it.

      If not then use an amplifier in between the sound box and the siren input

      Reply
    • Swagatam says

      May 12, 2016 at 10:50 am

      if the siren signal is already amplified then make sure the sound box speaker is rated to handle the siren wattage.

      Reply
    • Sharoj Al Hasan says

      May 12, 2016 at 11:25 am

      How can i understand the Adjustment ? Is my speaker okay for Received signal from siren out . my siren ciruit work in 9v

      Reply
    • Swagatam says

      May 13, 2016 at 2:56 am

      add a volume control to the system and then slowly increase it, if the speaker distorts then its too high for the speaker

      Reply
    • Sharoj Al Hasan says

      May 13, 2016 at 8:24 am

      Sir Please Help Me How Can I Control Bolume ??? Sir Please Describe Me .

      Reply
    • Swagatam says

      May 13, 2016 at 4:35 pm

      Sharoj, show me your siren circuit then I'll tell you how to fix a volume control

      Reply
    • Sharoj Al Hasan says

      May 15, 2016 at 6:17 am

      https://drive.google.com/file/d/0B8k3jWgWe95XTXU3NERYQ0UxZk0/view?usp=docslist_apiir My Alarm Circuit Work on 9v Battery. And Have a mini Speaker In this Circuit.
      I want to replace The Speaker And Connect the Cable To Mini Speaker.

      Reply
    • Swagatam says

      May 15, 2016 at 9:07 am

      please put the image on "sharing" mode, because I am not able to be see it at the moment.

      Reply
  17. Sharoj Al Hasan says

    May 9, 2016 at 12:05 pm

    Dear Sir I Want to make An Circuit That I can Easily Connect A mp3 out to A Mobile Speaker In . But Sir I Am Afraid If The Mobile Speaker Get Damage ?? Sir please Help Me

    Reply
    • Swagatam says

      May 9, 2016 at 2:39 pm

      Dear Saroj, it is not possible to use the mobile speaker with an external music input and this is not recommended.

      Reply
      • Swagatam says

        May 9, 2016 at 2:41 pm

        …there's no external port in mobile phones which will allow it to connect with external inputs

        Reply
        • Aini says

          November 2, 2019 at 1:31 pm

          Sir, why relay in my circuit can’t switch off?
          I have measured the relay voltage on amperemeter when the probe is connected to wet soil, and its value is 4V, not to zero volt so the relay can’t switch off and the motor always on when the soil is dry or wet

          Reply
          • Swagatam says

            November 2, 2019 at 2:03 pm

            Aini, Did you connect the LED shown at the base of the transistor, what is the response of the LED?

            Reply
            • Aini says

              November 2, 2019 at 5:12 pm

              Yes I have connected the LED at the base of the transistor. The response is when the soil is dry, LED on. And when the soil is wet, LED off. Is that correct?

              Reply
              • Swagatam says

                November 2, 2019 at 7:33 pm

                Yes that’s correct.

                So when the LED is OFf, the base/emitter voltage will be zero and the relay must be completely OFF…please check and rectify this so that your problem is solved

                Reply
          • Swagatam says

            November 2, 2019 at 2:04 pm

            You can remove the 2k2 with the LED included.

            Reply
            • jacob says

              September 4, 2020 at 7:17 am

              we are not able to measure minute difference in moisture. can you help us to resolve this.

              Reply
              • Swagatam says

                September 4, 2020 at 10:42 am

                you will have to use an Arduino for minute measurements:

                https://www.homemade-circuits.com/digital-temperature-humidity-meter/

                Reply

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Subscribe to New Circuit Ideas

Categories

  • Arduino Projects (87)
  • Audio and Amplifier Projects (132)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (83)
  • Datasheets and Components (104)
  • Electronics Theory (143)
  • Free Energy (37)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (19)
  • Health related Projects (25)
  • Home Electrical Circuits (12)
  • Indicator Circuits (14)
  • Inverter Circuits (87)
  • Lamps and Lights (142)
  • Meters and Testers (69)
  • Mini Projects (46)
  • Motor Controller (64)
  • Oscillator Circuits (27)
  • Pets and Pests (15)
  • Power Supply Circuits (108)
  • Remote Control Circuits (50)
  • Security and Alarm (64)
  • Sensors and Detectors (101)
  • Solar Controller Circuits (59)
  • Temperature Controllers (42)
  • Timer and Delay Relay (49)
  • Transmitter Circuits (29)
  • Voltage Control and Protection (37)
  • Water Controller (36)

Calculators

  • Battery Back up Time Calculator
  • Capacitance Reactance Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • Inductance Calculator
  • LC Resonance Calculator
  • LM317, LM338, LM396 Calculator
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • Reactance Calculator
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator
  • Filter Capacitor Calculator
  • Buck Converter Calculator
  • Boost Converter Calculator
  • Solar Panel, Inverter, Battery Calculator
  • Wire Current Calculator
  • SMPS Transformer Calculator
  • IC SG3525, SG3524 Calculator
  • Inverter LC Filter Calculator

People Also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

Recent Comments

  • Swagatam on EGS002 Datasheet, Circuit Diagram Explained
  • Swagatam on How to Make IC LM339 Circuits
  • Swagatam on How to Make Dog Barking Preventer Circuit using High Frequency Deterrence
  • Swagatam on How to Buy and Use RF Remote Control Modules – Control Any Electrical Gadget Remotely
  • Swagatam on How to Generate PWM Using IC 555 (2 Methods Explored)

Company

  • Privacy Policy
  • Cookie Policy
  • About Me
  • Contact
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Quora
  • Stack Exchange
  • Linkedin
  • © 2025 · Swagatam Innovations