Closed-loop grow room: levers, signals and plant state
Operate a grow room as one system that corrects its errors. This basic paper shows the levers that you change and how to read the condition of the plants. It also shows how to send this information back to the levers without oscillation.
Purpose and scope
A grow room is a loop. It is not a panel of controls with no connection to each other. You do not set the controls one time and then ignore them. You change a control, and the room and the plants change as a result. The sensors measure the change, and you examine the data. Thus you know the next change to make, and the cycle continues each minute of each day.
A thermostat is an example of a closed loop. When the room becomes too warm, the sensor measures the temperature and the air conditioner (AC) starts. When the temperature is correct again, the AC stops. The output of the system goes back to control the input of the system, and the cycle starts again.
In a grow room, all the controls operate with the same method. The plant shows you the next change to make. Then you monitor the effect of the change.
This paper shows the full cycle as one system. The cycle has three tasks. The task of cause is to make the lever change correct. The task of perception is to make the measurement accurate. The task of cognition is to find the information in the data.
A change has an effect on more than one part of the room. Each change of a lever changes four connected balances at the same time: heat, water vapor, CO2 and the salt in the root zone. A full loop is a room that senses its condition and knows the effect of each change. It corrects its drift before the drift causes damage.
Definitions
Many terms in this paper are new. This section gives a definition of each term that is necessary before the primary content. Most of the terms are easy, but their names are not easy. It is not necessary to know all the terms at this time. Each term occurs again in the paper.
Evidence and limitations
We want each paper to be correct. Thus we examine each paper for information that is not solid. This information comes from the view of one grower, from a small number of sources, or from grower methods that have no controlled test. We identify this information, and we do not show it as solid.
Frequently there is no paper for the decision that you must make. Then we use the reports of other growers and the methods that work in the rooms that we know. This information can help you, but it is not the result of a laboratory test. Use the methods that work for your plants, for your room and for your meters. If a table does not agree with your crop, use the data from your crop and record the difference.
- A loop that operates, measures, compares and adjusts is correct control theory.
- Do not adjust one climate value at a time, because the climate values have an effect on each other.
- Typical structures of the dashboard and of the automation for rooms.
- Sure values of the time before tipburn, from data on other crops and not from cannabis.
- A time of less than five seconds to know the condition of all the room, as performance that tests show in horticulture.
If you find an error, make a report. We will correct it. Make the report on GitHub, with the name of the paper and the information that is incorrect. If you have a source, include it: Make a report of an accuracy problem. The regulations, labels and licenses of your area always override each procedure in these papers. The label weak in a paper shows the points where the risk of an error is highest.
Control levers and coupled effects
The room is one coupled system. It is not a set of controls with no connection to each other. When you increase the light intensity, you add more than light.
You also add heat. The plants absorb and transpire water at higher rates, and the humidity increases. The plants use more CO2. The root zone dries more quickly, and the concentration of the salt in it increases more quickly[4]. Light is a source of heat, a cause of transpiration, a cause of CO2 uptake and a load on the HVAC at the same time[5].
Each change that you make has an effect on one or more of four balances: energy (heat), moisture (water vapor), carbon (CO2) and salt (root-zone EC). Approximately eleven primary groups of levers have an effect on these balances[5]. Before a change, do not examine only the function of the lever. Find the balance on which the change has an effect. Make sure that all the other parts of the room can absorb the change.
| Balance | Inputs | Outputs | The levers to change |
|---|---|---|---|
| Energy (heat) | Lights, equipment, sun load | AC, air exchange | Light intensity, cooling setpoint, airflow |
| Moisture (vapor) | Transpiration, irrigation | Dehumidifier, exhaust | Dehumidifier setpoint, VPD target, shot size |
| Carbon (CO2) | CO2 supplementation | Plant uptake, exhaust | CO2 setpoint, times of exhaust |
| Salt (root zone) | Feed EC, dryback | Plant uptake, runoff | Shot size and frequency, dryback target, feed EC, runoff % |
Sensor readings and the inference of plant state
You must measure the changes in the room, and noise must not cause incorrect data. Then you must find the information in the data. Each measurement is signal plus noise. Usually, many alarms from raw data are noise. Remove this noise before you use an alarm for a decision[2].
To read the plant state, go from a number to a decision. A number is ‘The VWC decreased by 12% during the night’. A decision is ‘The plant is in the generative steering that you want, and no change is necessary’ or ‘Decrease the dryback by 3% during the next night, or tip burn is possible in approximately 48 hours’. The task is to find the plant state. It is not only to show the data of the room.
To get the plant state, do these three steps in this sequence:
- Set the correct speed of sampling for the biology. Make the speed sufficient to measure the change that an irrigation event causes in 30 minutes. Do not make the speed high, because you cannot use the jitter that you record.
- Remove the scatter with a rolling average or a median filter before you examine the data.
- Compare the data with control limits. The control limits are values on the chart that you calculate from the recorded data of the room. Usually the values are the mean and approximately ±3 standard deviations (sigma)[1].
Then use many readings, because one reading is not sufficient. Use a group of 12 readings (n-of-12), not one reading (n-of-1). The only correct input to the inference is a clean signal with a classification.
The inference uses sensor fusion on some clean signals to make named conditions. Each named condition has a value of confidence and an evidence chain. The inference compares the signals with a learned envelope and not with a constant limit. A VPD of 1.4 kPa is correct at the end of flowering, but it causes stress at the start of vegetative growth.
Closed-loop diagnosis and corrective action
In this section, the three tasks operate as one system. Follow one usual problem through the full loop. The problem is salt creep. In salt creep, the dissolved salts slowly increase in the root zone, because each dryback cycle removes water but the salt stays.
- Cause makes the conditions
A long dryback and a constant feed increase the salt concentration by a small quantity in each cycle. Thus the load on the slowest balance increases.
- Perception ignores noise
Perception ignores one EC spike. But perception identifies a signal when the EC increases for four days and is more than the control limit.
- Cognition finds the information in the signal
Cognition uses sensor fusion on this trend, the feed data and the dryback data. The result is a precursor with a name: ‘salt accumulation, tip-burn precursor’. The precursor has a value of confidence and an evidence chain.
- Prescription and change
The loop sets the dryback lever to a smaller dryback. This change closes the loop approximately four days before you can see tip burn. The salt balance then starts to become correct again.
Bridge metrics let the three tasks send data to each other. The bridge metrics are dryback %, VPD, VPD-hours, pore-water EC and recovery slope. The system calculates each metric one time, with one definition. Each part of the loop reads the same value.
Always give a prescription with a number and show how you calculated it. Give the lever change, the setpoint, the time limit and the result that the change will cause. The person who reads the prescription can open the full evidence chain when necessary. Do not make a black box.
| Failure | Cause or coupling | Signal method that finds it | Inference and prescription |
|---|---|---|---|
| Salt creep that you cannot see | Long dryback and constant feed | EC more than the limit for 4 days | Tip-burn precursor → decrease the dryback |
| The irrigation water does not go to the substrate | Blockage, pump fault or tubing fault | The VWC does not increase after the shot | Shot with no effect → apply the shot again, give an alarm |
| Morning stress that you cannot see | VPD spike at lights-on | VPD-hours more than the learned envelope | Morning stress → change the climate slowly |
| Slow failure of the dehumidifier | The capacity to remove water decreases | Drift trend of the RH, not a spike | Capacity fade → do maintenance before the failure |
| A sensor that does not measure the room | A probe with a constant signal or with noise | Very low variance, or jitter: special-cause variation | Defective probe → put it in quarantine, do not use its data |
Procedure for closed-loop control
Make the loop one stage at a time. Do not start the next stage until the previous stage operates correctly. For almost all of this, it is not necessary to get new equipment. Most of it is a method.
- Part I: know the coupled effects of each change
Before each change, identify the balances on which the change has an effect, and the direction of each effect. Think that each failure is a problem of capacity, or a problem of levers that you do not set together. It is not the fault of one lever.
- Part II: make your signals accurate
Do not monitor each new reading, because it can cause you to change levers too much. Set a sampling cadence for each sensor. Put a rolling average on each chart that you use for decisions. Calculate the control limits from your recorded data.
- Part III: make decisions with inference
Compare the data with a learned envelope for each cultivar, each growth stage and each photoperiod. Use sensor fusion before you give an alarm, because one signal is not sufficient. Make each advisory give a number and show its evidence chain. Make the system give no alarm when there is no problem.
- Close the loop last, and carefully
At the start, let the system make only automatic changes with low risk. Make sure that you can change the lever back. For example, the system changes the dryback by 3 points after a person gives approval. A person must give approval for each change that has a high cost or that you cannot change back.
Troubleshooting
Two failure modes make a loop defective: use of noise as a signal and oscillation. If you give noise (spikes, jitter and incorrect trends) to a controller, the controller changes levers for changes in the room that did not occur. The noise makes the room not stable. A loop that receives noise does not help. It makes the problem larger.
Oscillation occurs when you change a lever too quickly or too much, or for readings that are in the usual variation. As a result, the values in the room increase and decrease, and do not become stable[1].
- Aliasing: if the sampling is too slow, you see incorrect trends. If the sampling is too frequent, you record jitter that you cannot use, and the jitter can cause tampering. Make the sampling cadence agree with the biology[7].
- The Stage-2 trap: each new reading causes more stress for you than no data. The readings are a large quantity of noise, and they can cause you to make incorrect changes quickly.
- Follow the loop, not the small change: make the data sufficiently smooth to change levers with confidence. Do not make the data very smooth, because then you cannot see a fast change that is not noise. Keep the raw data available in one step.
Expected results and limitations
- Automation is not necessary to get good results. The advisory is on the screen a long time before the system changes a lever without a person. If you stop at this point, the result is good and stable.
- The numbers are only a start point. The reference setpoints are values from commercial cultivation. Use them as a start point, and calibrate them with the recorded data of your facility. The method is correct for all facilities. You must find the setpoints for your facility.
- Start with a small test. Select one room and one type of failure. Operate the loop in shadow mode for one cycle. Measure the lead time of one advisory before you use the loop in more rooms.
First, know the coupled effects of your changes, make your signals accurate, and make your decisions with inference. Then, and only then, think about how to close the loop. For more information about the perception half, read the signal and noise paper. For information about the cognition half and how it gives the results to you, read the plant-state dashboard paper.
References
- Mohammed MA. Statistical Process Control. Cambridge University Press (Elements of Improving Quality and Safety in Healthcare); 2024. https://doi.org/10.1017/9781009326834
- International Society of Automation. ANSI/ISA-18.2-2016, Management of Alarm Systems for the Process Industries. ISA; 2016. (source not from a journal, for example from a manufacturer). https://www.isa.org/standards-and-publications/isa-standards/isa-18-series-of-standards
- Moon T, Ahn TI, Son JE. Forecasting Root-Zone Electrical Conductivity of Nutrient Solutions in Closed-Loop Soilless Cultures via a Recurrent Neural Network Using Environmental and Cultivation Information. Frontiers in Plant Science. 2018;9:859. https://doi.org/10.3389/fpls.2018.00859
- Huber BM, Louws FJ, Hernandez R. Impact of Different Daily Light Integrals and Carbon Dioxide Concentrations on the Growth, Morphology, and Production Efficiency of Tomato Seedlings. Frontiers in Plant Science. 2021;12:615853. https://doi.org/10.3389/fpls.2021.615853
- Runkle E, Kim WS. Interactions of light, CO2, and temperature on photosynthesis. Michigan State University Extension, Floriculture & Greenhouse Crop Production; 2017. (source not from a journal, for example from a manufacturer). https://www.canr.msu.edu/resources/interactions-light-co2-and-temperature
- Szerement J, Woszczyk A, Szyplowska A, Kafarski M, Lewandowski A, Wilczek A, Skierucha W. A Seven-Rod Dielectric Sensor for Determination of Soil Moisture in Well-Defined Sample Volumes. Sensors (Basel). 2019;19(7):1646. https://doi.org/10.3390/s19071646
- Advancements in dielectric soil moisture sensor calibration: A comprehensive review of methods and techniques. Computers and Electronics in Agriculture. 2024;218:108663. https://doi.org/10.1016/j.compag.2024.108663
- Choi KY, et al. Changes in electrical conductivity and moisture content of substrate and their subsequent effects on transpiration rate, water use efficiency, and plant growth in the soilless culture of paprika (Capsicum annuum L.). Horticulture, Environment, and Biotechnology. 2015;56(2):209-217. https://doi.org/10.1007/s13580-015-0154-6
- Saure MC. Calcium localization and tipburn development in lettuce leaves during early enlargement. Journal of the American Society for Horticultural Science. 2001 / related work on localized calcium deficiency and tipburn. https://pubmed.ncbi.nlm.nih.gov/11543566/
The Cannabis White Papers · CC BY-NC 4.0 · version 1.2 · updated 2026-07-18