A self-confessed bunch of students and amateurs have put together a rather cool system for watering plants featuring some soil sensors, an analog to digital converter and a solenoid valve to release the water. You can read all about it, and follow along with their steps, by reading the Instructable.
I posted a comment on the Instructables site – don’t like preconfigured SD cards – not very instructional!