Implementation of an IoT Sensor-Based Environmental Control System for Straw Mushroom Growing Houses with a Safety Delay Mechanism
Abstract
Straw mushroom cultivation requires consistent management of temperature and humidity inside the growing house. Manual monitoring may respond slowly to changing conditions, while Internet of Things (IoT) data can support control decisions. This study implements an IoT-based environmental control system for a straw mushroom house with a safety-delay mechanism and describes monitoring characteristics and actuator activity across two cultivation cycles. The system uses an ESP32 microcontroller, DHT22 sensor, monitoring dashboard, relay modules, heating lamp, and water pump. The control rules activate the lamp for 20 minutes below 30°C, maintain monitoring without actuation between 30°C and 32°C, and activate the pump for 10 minutes above 32°C. A five-minute safety delay follows each actuator operation before the next sensor reading and control decision. Field testing was conducted for 12 days per cycle. Cycle I recorded 14,946 readings, an average temperature of 31.6°C, average relative humidity of 86.6%, and cumulative production of 52 kg. Cycle II recorded 14,831 readings, an average temperature of 30.0°C, average relative humidity of 88.3%, and cumulative production of 49 kg. Pump activation increased from 183 to 881 minutes, while lamp activation decreased from 4,158 to 3,071 minutes. The results demonstrate implementation across two cycles and provide records of environmental conditions and actuator activity. The production difference cannot be directly attributed to the control system because no comparison group or analysis of other cultivation factors was available.