Electric Imp source code for a garden soil moisture sensor.