Soil moisture sensor seems to power up the whole plant

I am back on this project:

I switched to pre-made I/O boards, which makes everything 100 times easier and I can change things whenever I like. I would have definitely liked to discover these sooner!

I am having a lot of problems with the fact that when the moisture sensor is in the soil, the plant seems to have power through it. I realised when the tip of a leaf touched my face, and I felt a bothersome sting. I powered the unit off, and the sting disappeared. The plant is showing sign of stress when it shouldn't.

The probe is inserted horizontally in the pot, touching the soil. The problem occurs even if only half the probe is in the soil. The pots are in plastic pots on ground made of cement. The sensor's circuit is not touching water or soil in any way (as I said, the problem is there even if the sensor is half in). The room seems to have substantial EMI. I am not sure if it's relevant, but there is soil all around the room, which is... well, "well grounded".

I measured the voltage. It changes quickly; my multimetre is not fast enough, but it goes from 300mV to 1500mV.

Where is the tingling sensation coming from? Why is the sensor somehow powering the plant? Any hints on how to discover more and debug this further?

1 Like

Power supply?
I see no transformers or inductors, so it probably isn't flyback.

How was this measured?

Try coating the edges of the soil moisture PCB with varnish/shellac/nail polish. Sometime water can migrate under the coatings and make contact with a PCB trace

inserted horizontally

So it was touching plant roots?

What is your question?

It wasn't -- not properly. I noticed huge fluctuations every 10 seconds in the sensor's reading. I shortened the cable and used a very shielded cable, and the fluctuations went away.

Well yes, it was at roots height.

Oh wow OK. I had the same problem with a brand new sensor just after inserting it in...
Would it be that quick?

The last line of my post:

"Where is the tingling sensation coming from? Why is the sensor somehow powering the plant? Any hints on how to discover more and debug this further?"

The power supply is through a barrel plug to the side, it's just a 12V 2A supply. You can see the plug from the photo

Oh also the sensor is powered by a digital port, since it's only powered when a reading is made (to minimise it's reaction with soil)

Depends on the quality of the board. Sometimes the copper can be right at the board edge

I noticed huge fluctuations every 10 seconds in the sensor's reading.

That may be a totally different problem.

Oh the fluctuation is not an issue anymore. I just need to make sure plants are not fried by electric currents, and there is no leakage...

NEVER do that. That may contribute to both problem

The sensor doesn't use much power; should I use a MOSFET to power it instead?
Do you think the "power through the plant" problem might be due to the sensor being powered by the pin...?!?

No, just power it from the 5V pin.

Do you think the "power through the plant" problem might be due to the sensor being powered by the pin...?!?

It's probably a combination of things.
Bare PCB edges.
Having the board in close contact with the roots.
Improper power.

Try correcting all three and see what happens.

If you still have a problem it must be something else.

Also I'm not sure how well those capacitive sensors work if they are horizontal

Bare PCB edges

Just to be 10000% clear. you are recommending using nail polish on the EDGES of the the sensor, all around it, right?
I am just amazed that they would sell something that need users to do that (!).

Having the board in close contact with the roots.

No, wait. The board (the non-sensing part of the thing) is completely OUTSIDE of the pot. In fact, some of the sensing portion is also outside of the pot, just to be sure. The only part IN the pot (and touching roots/soil) is the sensing parts, placed horizontally

Improper power.

Won't the sensor degrade more quickly that way?

I'm not sure how well those capacitive sensors work if they are horizontal

It's not actually horizontal, it's on a 45 degrees angle, and yes they do work fine for my use.
(But, you do need to put a "sock" on the sensor to make it actually work properly...)

Merc.

Yes, It's not a commercial product, it's a hobby product.

The only part IN the pot (and touching roots/soil) is the sensing parts,

The sensing part goes all the way up the where the electronics are.

Won't the sensor degrade more quickly that way?

Not sure what you mean here.

(But, you do need to put a "sock" on the sensor to make it actually work properly...)

Not sure how that would affect the readings. You are the first person I have come across that claims it needs a sock in order to work properly.

Not sure how that would affect the readings. You are the first person I have come across that claims it needs a sock in order to work properly.

Oh no I am not. This is the most glaring one, but there are several: Soil Moisture Sensor "freezes" Also Capacitive Soil Moisture Sensor barely drops Values and so on... However this is completely outside the scope of my post.

Yes, It's not a commercial product, it's a hobby product.

Ouch. OK.

Won't the sensor degrade more quickly that way?

Not sure what you mean here.

This is an example: Turn off power to a moisture sensor except when reading values - Arduino Stack Exchange But I saw it first hand: powering these sensors all the time causes them to degrade very quickly. I saw it first hand.

The sensing part goes all the way up the where the electronics are.

No, there is a clear line drawn in the sensor that separates the "sensing" part and the circuit.

So I reproduced it... fully.

Multimeter is on the board's ground and... in the water.
The sensor is partially immersed in water (not all of it).
It's powered with the Arduini D3.

At the beginning, the reading was very low. We weren't quite sure we could feel it when using a wire in the water then touching our faces, shoes off.

I then added a small amount of salt (as in normal salt) in the cup. The reading went through the roof. When my wife placed the testing cable in her face, she screamed. Not painful, just unexpected, and very stingy. I can assure you it's NOT pleasant. This is similar to what I felt when dealing with the plants (which have salt-based fertilisers).

Now it's stable to 0.7V.

I am totally confused.

I see I commented on one of those posts.

I can't dispute your claims, all I can say is I've never experienced any of those problems.

Is the power supply connected to your AC mains? Are you certain nothing bleeding through?

Set your voltmeter to mains voltage AC.
Connect your voltmeter negative lead to a known ground.
Connect the positive lead to your board ground.
Get a reading? Dial the setting down to ensure you are not getting AC power from the mains.
Just a thought.

Wait, what you are saying is that I might be seeing NOT the current that the sensor is leaking, but the voltage drop between the circut's earth and the main's earth?