Soil Moisture Sensor Coating Lessons Learned The Hard Way

A soil moisture sensor with silkscreen chipped and copper corroded

Ever wanted to measure soil moisture? Common “soil moisture meter module arduino raspberry compatible free shipping” PCBs might deceive you with their ascetic looks. Today, [Raphael (@rbaron_)] is here to teach us (Twitter, unrolled) what it takes to build a soil-embedded sensor that can actually survive contact with a plant.

As the picture might hint, waterproofing is of paramount importance, and soldermask doesn’t quite cut it. Raphael describes his journey of figuring out approaches and coatings that would last, starting from simply using nail polish, and ending with the current option – a rotisserie-like device that rotates sensors as the coating applied to them dries, mitigating a certain kind of structural failure observed long-term. With plenty of illustrative pictures and even a video of the rotisserie device in action, you’ll quickly learn things that took time and effort for Raphael to figure out.

This isn’t the first time Raphael shares some design battlefield stories and lessons with us – he has taught us about overall capacitive moisture sensor principles, too! If that interests you, we’ve covered quite a few moisture sensor designs, from cheap but hardy two-nails designs to flip-dot-equipped ones, and some of us take the commercial designs and upgrade them!

We thank [Chaos] for sharing this with us!

35 thoughts on “Soil Moisture Sensor Coating Lessons Learned The Hard Way

  1. >> their ascetic looks

    ascetic
    /əˈsedik/
    adjective
    characterized by or suggesting the practice of severe self-discipline and abstention from all forms of indulgence, typically for religious reasons.
    “an ascetic life of prayer, fasting, and manual labor”

    I think the word you wanted there is “aesthetic”.

      1. If “ascetic” was troubling enough, I doubt “tautology” is going to be very helpful.

        I do appreciate any opportunity to use the word “tautology” in a sentence, however.

  2. I’ve gone through this exactly. Conformal coating all the way to a thick epoxy coating. I determined that you basically cannot make these sensors surviveable. The problem is that any moisture that gets through will eventually permeate through the fr4 and destroy the calibration. If you try to make an ultra thick coating it destroys the sensitivity of the sensor.

    I went through numerous iterations and was never able to get one of these types of sensors to stay calibrated for more than a month. Consequently I don’t recommend them.

    1. Assuming that there is watering involved, you can easily recalibrate automatically whenever the signal goes above some threshold, so this doesn’t seem like a major problem to me.

      You have to solve the software half too, it isn’t enough to just fix the hardware.

  3. Long time ago, I used two 1/4-20 stainless bolts set in an plastic box with a silicone seal, it lasted years-never wore out. Recently bought a bunch of wireless moisture sensors to hack, the two-part soil probe appears to be aluminum.

  4. No, ascetic also works. The cheap, poorly-made PCBs are constructed very simply, sparsely, in a way which could be compared to e.g. a monastic cell: only the bare minimum.

  5. Anyone who would stick a PCB coated or not in water or dirt should stay away from doing anything electronic related.
    Learn how to do something before you just start guessing.

          1. Likewise, I used one for about a year, no signs of any corrosion – the plant died for other reasons, so the sensor got retired.
            Key to long life I believe is only turning the sensor on when you want to take a reading?

          2. The type of corrosion in the image above would happen regardless of being powered or not. If you really want long life you would have to remove it from the soil. But then if you get one that chirps when you need to water it won’t alert you so….

          3. Since my product has been mentioned, I am obliged to chime in.

            I know this challenge very well, been working on it for over 7 years already.

            At first I have used acrylic based spray, but alas, acrylic is hydrophilic! It worked fine, but degraded in a year or so. Then I have used non-polyester epoxy – high end one, hell to work with as you have to correctly maintain humidity, temperature etc, etc. This resulted in bulled proof sensors, but proved to be economically non-viable. Then in parallel I have started using polyurethane spray – I must say, it’s a pretty good compromise – takes a bit of care to properly apply and sensors stay operational for over a year. Actually I have one reporting reliably for over 3 years in my flower pot.

          4. I’ve used all of the products mentioned here, including miceuz’s (very well-made) rugged sensor. One thing that hasn’t been discussed much is potting medium: the coarser the medium, the faster sensors will fail—regardless of what coating is used. Bonsai akadama clay? Forget about it.

      1. Offcourse you can learn from failures.
        However, most failures can be avoided if you just stop and think a bit before you do something.
        Reading about what has been done in the past also helps to avoid making the same mistakes.

        Firstly, this thing measures resistance, not moisture. Althouh there is a correlation between the two, there is not necesarily a good way to convert the one into the other, it is at best a guestimatye and, if it is used outside, you will get non-sensical measurements once it starts freezing.

        Secondly, for any long-term measurements using such a method, you should avoid DC and use AC. Long term DC means you will be basically electroplating your electrodes and therefore changing the measurements over time.

        1. I was confused by your reply until I understood the ambiguity of my message.

          You parsed it as;
          “Are you suggesting that one never learns anything from their projects?”

          While I meant;
          “Is this person suggesting that they never learn anything from their projects?”

  6. That’s not the harsh environment. It’s an electrochemical reaction. I once dissolved a perfectly fine stainless steel spoon when using ist as a soil sensor electrode….

    1. Capacitive soil moisture sensors don’t have the same problem. Resistive ones are the ones that have that electrochemical reaction and are why when I first got some I stayed clear of resistive sensors. These days I just use resistive sensors with replaceable stainless steel probes.

      1. Conductive sensor are as they name imply, conductivity sensors, which are not moisture sensor per se.
        Any change in dissolved ions will impact resistivity even if moisture content is the same.

  7. I’ve been working on EC sensors in my spare time, and yeah, water will eventually find it’s way into the FR-4… Sealing the edges helps a lot. But it will even creep through soldermask slowly. Stainless steel electrodes help, but are a *** to solder!

    1. I’ve buyed cheap HCL based gel flux (for $4) and it was quite easy to solder wires to stainless cuttlery using regular SnPb solder. There are even better fluxes made specificaly for stainless which work even better, while being in similar price range.

  8. I have had the same problem with f****** coating on the chinese sensors.
    I ordered the original sensors from:
    https://www.ramser-elektro.at/shop/bausaetze-und-platinen/giesomat-kapazitiver-bodenfeuchtesensor-erdfeuchtesensor-mit-beschichtung/
    There is a polyurethane coating on it.
    No problems anymore.
    The sensors on the linked shop are the original one!
    They was developed in a forum:
    https://www.mikrocontroller.net/articles/Giess-o-mat

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.