Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. Soil Moisture Sensor shows strange values

Soil Moisture Sensor shows strange values

Scheduled Pinned Locked Moved Hardware
4 Posts 3 Posters 1.9k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ronnyandreR Offline
    ronnyandreR Offline
    ronnyandre
    wrote on last edited by
    #1

    I bought a cheap soil moisture sensor from Aliexpress that is simple and straight forward to use. The sensor reports 1023 when it is completely dry, which is correct. However when the sensor is submerged in water, it only reports around 380-400. One might think it should show a value much closer to 0?

    Does anyone have experience with this? Or is the simple solution just to map the values from around 400-1023 as 100%-0% moisture?

    Newbie with RPi and Domoticz, trying to automate my home.

    mfalkviddM YveauxY 2 Replies Last reply
    0
    • ronnyandreR ronnyandre

      I bought a cheap soil moisture sensor from Aliexpress that is simple and straight forward to use. The sensor reports 1023 when it is completely dry, which is correct. However when the sensor is submerged in water, it only reports around 380-400. One might think it should show a value much closer to 0?

      Does anyone have experience with this? Or is the simple solution just to map the values from around 400-1023 as 100%-0% moisture?

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      @ronnyandre the sensor measures resistance/conductivity, which can be used as a proxy for moisture.
      If you submerge the sensor in salt water, you'll see that the value is closer to 0 than regular tap water.
      If you submerge the sensor in distilled water, you'll see a value closer to 1023.
      I have even seen lower values in moist soil than in tap water, which most likely is thanks to the minerals in the soil having better conductivity than the tap water.

      So the "moist" value and the "dry" value will be different for different mixtures of soil. It might be that "completely dry" for one type of soil is lower than 1023.

      In addition to that, some plants prefer much drier soil than others.

      Testing "dry" and "moist" for your particular soil composition and plant needs, and mapping can be a good method. I have chosen to not do that, but instead set different thresholds in my controller for "time to water the plant" notifications. One notifies at 60%, another at 12%.

      ronnyandreR 1 Reply Last reply
      1
      • ronnyandreR ronnyandre

        I bought a cheap soil moisture sensor from Aliexpress that is simple and straight forward to use. The sensor reports 1023 when it is completely dry, which is correct. However when the sensor is submerged in water, it only reports around 380-400. One might think it should show a value much closer to 0?

        Does anyone have experience with this? Or is the simple solution just to map the values from around 400-1023 as 100%-0% moisture?

        YveauxY Offline
        YveauxY Offline
        Yveaux
        Mod
        wrote on last edited by
        #3

        @ronnyandre this is a resistive sensor, I guess.
        Resistance of water is not zero, so you still get a value much bigger than zero when converted by your arduino.
        What value does it report when you short the sensor poles with a wire?

        http://yveaux.blogspot.nl

        1 Reply Last reply
        0
        • mfalkviddM mfalkvidd

          @ronnyandre the sensor measures resistance/conductivity, which can be used as a proxy for moisture.
          If you submerge the sensor in salt water, you'll see that the value is closer to 0 than regular tap water.
          If you submerge the sensor in distilled water, you'll see a value closer to 1023.
          I have even seen lower values in moist soil than in tap water, which most likely is thanks to the minerals in the soil having better conductivity than the tap water.

          So the "moist" value and the "dry" value will be different for different mixtures of soil. It might be that "completely dry" for one type of soil is lower than 1023.

          In addition to that, some plants prefer much drier soil than others.

          Testing "dry" and "moist" for your particular soil composition and plant needs, and mapping can be a good method. I have chosen to not do that, but instead set different thresholds in my controller for "time to water the plant" notifications. One notifies at 60%, another at 12%.

          ronnyandreR Offline
          ronnyandreR Offline
          ronnyandre
          wrote on last edited by
          #4

          @mfalkvidd Thanks for the careful and understanding explanation. Of course it makes sense that salt water is more conductive than tap water and distilled water. I will calibrate and map according to the specific soil I will use the sensor with. Thanks :smile:

          @Yveaux I haven't tried that, but that was a good idea to see if the sensor itself has any issues with the conductivity. One can never completely trust cheap chinese hardware.. :smirk:

          Newbie with RPi and Domoticz, trying to automate my home.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          22

          Online

          11.7k

          Users

          11.2k

          Topics

          113.1k

          Posts


          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • MySensors
          • OpenHardware.io
          • Categories
          • Recent
          • Tags
          • Popular