Problem with coding HC4051

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