This is an overview of the working code used currently in the prototype Garden Controller. The code isn't complete and still has a few errors, but it has successfully kept plants alive for 7 days and allowed the plants to grow.
A link to the code will be added soon.