Development of the Basis for an Automated Plant-based Environmental Control System