analogRead????

Your code doesn't compile because of the single quote at the end of this line:

  Serial.println( moisture_val );'

What (if anything) actually got uploaded to the arduino?