Capacitive moisture sensor

Capacitive moisture sensor not quite working

Ask QuestionAsked yesterdayActive todayViewed 48 times2

I have spent the past few days trying to reverse engineer a capacitive moisture sensor I ordered from eBay a while ago. The particular one I received looks like this:

original pcb

What fascinated me about this sensor was that I could put it in a plastic bag and it would still be able to give accurate moisture readings. In air, the output voltage of the sensor is about 2.3V; in water, I am getting around 0.7V when submerged directly and 1.6V when submerged in a plastic bag. After analysing the circuit, I came up with this schematic (Note: I have left out the voltage regulator and the four corresponding caps, because I am feeding in 3.3V DC from my bench supply directly):

sensor schematic v2

I then built a prototype on a breadboard, which gave me this result:

enter image description here

Unfortunately, my sensor does not work as well as the one I bought, because the voltage drops seem to be a lot smaller.

The output voltage in the air is the same. But when submerging it directly in water, I am getting 1.6V (as opposed to 0.7v for the bought one). When submerging it in a plastic bag, I can only see a voltage drop of 10mv to about 2.29V.

I have already re-measured the component values several times and also buzzed out all the traces again to make sure I got the connections right, but I obviously must be missing something.

One thing I have noticed while testing is that decreasing the value of C1 from 23nF to something like 470pF causes larger voltage drops, which makes my custom built sensor behave more like the bought one. But I’m still far from what I would like to see.

I’m an electronics beginner and this is one of my first reverse engineering projects, so any advice/tip would be greatly appreciated. I suspect that there is something wrong with my 555 timer circuit, but since I don’t have access to an oscilloscope, I could not really confirm that idea so far.sensorcapacitancereverse-engineeringhumidityshareedit  follow  flagedited 21 hours agoasked yesterdayAlexander Richter2122 bronze badges New contributor

  • 1please draw a properly formatted schematic … power at top, ground at bottom, input on left, output on right … C1, R2, R3 should be drawn in vertical orientation … same for C2, R4 … U1 should be turned 90 degrees clockwise – jsotola yesterday
  • 1@jsotola the schematic is laid out so that the components are placed and rotated exactly like they are on the PCB. I thought it would be easier to follow this way… – Alexander Richter yesterday
  • 1definitely not easier to follow … a schematic diagram is not a wiring diagram … it does not represent component placement … it represents the electrical relationship between components … also, never draw lines through components, like you did between pin 2 and pin 6 – jsotola yesterday 
  • 1does the probe have only one wire going into the dirt? – jsotola yesterday
  • 1No, it does have two wires: 1) the one labeled PROBE in the schematic/wiring diagram, and 2) one connected to ground – Alexander Richter 22 hours ago
  • 1I can see C1-6 on the ident in the photo. You “left out the voltage regulator and the four corresponding caps” so there should be two remaining in your circuit. The circuit diagram shows C1-3? Are you sure which caps belong to the power section and the sensing section? – mhaselup 20 hours ago
  • 1The link to eBay shows the circuit incorporates a probe on the PCB. In your implementation are you using the same probe section or is your probe implemented as a couple of wires going into the soil/water? Could the original item have capacitance in the probe that isn’t present in your implementation? – mhaselup 20 hours ago
  • 1@mhaselup The caps at the input are connected like this: C5 & C6 are connected in parallel to VCC and GND. Then comes the linear voltage regulator U2, which is not present in my particular model. Instead, it is jumped using a 0 ohm resistor. Then, caps C1 & C2 would be connected to the output of the voltage regulator and to ground, and they’re also connected to the 555 chip where it needs input voltage. But since there is no regulator present on my model, C1 & C2 also just connect across VCC and GND. – Alexander Richter 20 hours ago
  • 1@mhaselup as for the probe capacitance: I have cut off the probe section of the PCB and soldered wires to it, so I guess it should work. When I reconnect it to the original PCB using the wires, I do observe the correct behavior… Can I somehow measure the capacitance of the probe? – Alexander Richter 20 hours ago 
  • @Alexander Richter, you are indeed a ninja grade electronics reverse engineer. I am glad to join in the chat for the following reasons: (1) To improve my broken English, (2) To improve my photography skills, (3) To learn eBay marketing and product evaluation and quality assurance and control skills. (4) To learning capacitve measurement, which I have zero knowledge and experience (I do know quite a lot of the 555 thing) / to continue, … – tlfong01 1 hour ago   
  • I have played with a couple of moisture sensors, all of which are not capacitive, and this let me feel inferior. Anyway now let me search my junk box for any capacitive moisture sensors, before I join in the chat group. I will be back. – tlfong01 1 hour ago   
  • Now I have found some moisture sensing stuff, and took a picture for reference in our coming chat sessions. “tlfong01’s Moisture Sensor and NE555 Timers”: i.imgur.com/RfMZHhn.jpg. I remember I have some more sensors identical to the OP’s from eBay, so I will carry on searching. I will be back. – tlfong01 1 hour ago   
  • So I have found the capacitive sensors seemingly identical to the OP’s. They have been lying in the junk box for a long while, collecting dust. Anyway, I have also taken a picture, but Imgur did not allow me to upload any more pics and told me to come later. I guess they have placed my name in a long queue for boring pictures, and my experience is that I have a wait for next day. I am impatient to wait. So I am drafting an answer to place my photos and perhaps schematics there, so the crowd can chat, referring to my uploads. – tlfong01 45 mins ago   

add a comment

2 Answers


  1. You’re using a bipolar 555 and the original obviously has a CMOS TLC555 (marked TL555). There are a number of differences aside from power supply current draw including greater output swing (particularly noticeable on a 5V supply).
  2. Diode on the original is probably a 1N4148 or similar. A 1N400x is too slow for this application.
  3. I would expect C1 to be more like 470pF.
  4. You are using an electrolytic capacitor for the filter, which may be too leaky for the 1M resistor. It may be okay, but you should be aware of the distinction between a ceramic capacitor (10G or 0.5nA max leakage at 5V) and an electrolytic (maybe 3uA leakage after 1 minute maximum) which is 6,000 times worse.

shareedit  follow  flagedited yesterdayanswered yesterdaySpehro Pefhany263k1111 gold badges217217 silver badges545545 bronze badges

  • 11. You’re right. The 555 on the product photo is actually a TL555, but the PCB I received has a chip labeled “NE555 69M GM184 64” on it. Does that still make a difference? I have already tried swapping out my 555 for the one on the original PCB by using a breakout adapter board, but I only see a very minimal improvement. 2. In my actual build, I am already using a 1N4148. I have updated my schematic accordingly. 3. & 4. I will try that out later today, maybe that is in fact the way to go. – Alexander Richter 21 hours ago 

add a comment0


How come my reverse engineered capacitive moisture sensor not working?


/ to continue, …


(1) Analog Capacitive Soil Moisture Sensor Corrosion Resistant With Cable v1.2 – eBay €5/5 pieces

(2) Capacitive Soil Moisture Sensor Tutorial (with schematic) – Alsan Parajuli, IotProjects, 2020feb02

(3) Calibration and Validation of a Low-Cost Capacitive Moisture Sensor System, E Achchillage etal, Saitama University, Japan 2019jul04

/ to continue, …


Appendix A – The OP’s Capacitive Moisture Sensor v1.2

op's sensor

Appendix B – tlfong01′ Collection of Moisture Sensors

tlfong01 collection 1/2

tlfong01 collection 2/2

Appendix C – Capacitive Sensor Schematic by Alsan Parajuli

(2) Capacitive Soil Moisture Sensor Tutorial (with schematic) – Alsan Parajuli, IotProjects, 2020feb02

moisture sensor schematic

shareeditdeleteflagedited 1 min agoanswered 35 mins agotlfong0170444 silver badges77 bronze badgesadd a comment

Categories: Uncategorized

3 replies »

  1. I’m not sure if my previous comments were sent as i was not logged in properly to wordpress.

    Anyway, I am working on my own 555 based capacitive soil sensors after working with Colorado State University on their sensors. I am self taught when it comes to electronics, so i have many gaps in my knowledge, however i have built several soil sensor prototype PCBs and wondered if you would like to collaborate. Perhaps we could co-design a better open source capacitive soil sensor. Let me know if you are interested.


  2. You seem to have posted twice, and I already replied the first one. So this reply is sort of a sequel.

    I googled CSU’s SCSD to get to know more about you. You might also like to skim the following pages about my project in gardening: My Rooftop Garden and Microgreen project:


    I know have much experience in electronic sensors but very little in plants. So we can complement each other and learn together.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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