Thanks guys .. i am using a moisture sensor as this one :

So when not plugged into the soil, i am expecting a "0" value, when being in water "1023", but i am only getting random reading.
And this is my schematics
Thanks guys .. i am using a moisture sensor as this one :

So when not plugged into the soil, i am expecting a "0" value, when being in water "1023", but i am only getting random reading.
And this is my schematics