Jeremy Blythe has written an excellent, in-depth tutorial to help you read moisture levels using an analog sensor. Particularly of interest to me is the wiring up of a MCP3008 analog-to-digital converter. It will come in most useful when I decouple the Nwazet Key Lime Pi and replace it with just the chip.