Serial monitor keeps printing "14"

I suspect @LarryD hit the nail on the head in Reply #12

Try the older version and see if that also works.

...R

I'm a little lost now, issue is solved in post #11. With code I posted it works. No need to keep trying to help :slight_smile:
Strange thing is that the sensor submerged in water shows about 0, dry shows 1023. Guess it's just reversed to other ones. Changing wire terminals etc doesn't change it, but it's not a problem at all.

Nalesnik:
I'm a little lost now, issue is solved in post #11.

Do you know WHY it was solved?

if not it may bite you again in the future.

...R

A solid 14 says to me you were printing the pin number.

I know I abandoned a wrong concept and redone the code with clear mind.
In the old one the A0 thing must've... gone wrong in a way, probably I just created a variable with a pin number, not pin "value".