I want to measure soil moisture using THIS sensor. I do not want to use ADC. In the sensor there is a digital output port and an analogue output port. I can use the digital output of the sensor without using adc? Is there any other way to get soil moisture with this sensor without using ADCenter image description here

  • Why don't you want to use the adc? Did you use all of the adc pins already?
    – benathon
    Apr 11, 2015 at 10:09
  • I don't have a adc with me.@portforwardpodcast Apr 11, 2015 at 10:12
  • Well you will need to make some sort of circuit to read this. An adc is best. Or even a microcontroller with an internal adc. But the pi doesn't have one.
    – benathon
    Apr 11, 2015 at 10:14
  • Get the datasheet and post it here. Email the guy amazon.com/Happy-Store-Hygrometer-Detection-Moisture/dp/…
    – benathon
    Apr 11, 2015 at 10:16
  • @portforwardpodcast The circuit link did not appear in comment. Can you please post the link Apr 11, 2015 at 10:29

3 Answers 3


Nope, to measure analog value you need some kind of ADC.

Maybe smth like that: http://www.doctormonk.com/2013/12/analog-sensors-without-analog-inputs-on.html

I have not tested it but should work. On the other hand it might be simpler just to use


The digital output will tell you when the set threshold has been exceeded. You set the threshold with a screwdriver and the blue pot on the board.

It's simplest if you power the device from 3V3. If you need to power from 5V you will need to add a voltage divider on the digital output to shift it from 5V to 3V3.


This module here can add ADC to the Raspberry Pi. It also has Analogue outputs. http://www.sf-innovations.co.uk/custard-pi-2.html

  • Please could you add some more detail to your answer, link only answers are not preferable.
    – Darth Vader
    May 31, 2016 at 8:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.