CO2 controller and sensor for greenhouse