http://stackoverflow.com/questions/13159119/ecoduino-flower-watering-kit-does-not-compile
that flower.cpp/.h looks a lot like a class around a 'garduino' sketch I discussed on this forum a few days ago here , similar sketches are discussed more often.
replace the light sensor with a potmeter or so.