Problem with coding HC4051

So when not plugged into the soil, i am expecting a "0" value

So expect random values, because that is what you both should get and are getting.