Controller for automated growbox