1. Introduction
Oyster mushrooms are a type of mushroom that only grows during certain times of the year when demand for them is high. Thailand has the potential to increase its mushroom production every year. Although most of the mushrooms are consumed domestically, a few are exported to foreign markets. The Thai Mushroom Research and Cultivation Association predicts that 20 million bottles of mushrooms will be produced, resulting in approximately 150,000 tons, or USD 257.78 worth of fresh mushrooms. Thailand is one of the countries in the world with the potential to produce mushrooms [
1]. This has led to the development of commercial mushroom cultivation, including floating mushroom greenhouses. To successfully grow oyster mushrooms, it is important to understand the ideal conditions for their growth, including air temperature, humidity, and lighting [
2,
3]. Providing these conditions is crucial for achieving high yields and quality mushrooms. As oyster mushrooms are in high demand and command a high price, many growers are interested in maximizing their yields by cultivating them into flowers.
Nowadays, there are still problems for people who want to grow mushrooms, but there is a lack of land for mushroom cultivation, such as ponds, fishponds, etc., to increase income for farmers and use the land to their benefit [
4,
5]. Therefore, the research group has come up with a design for a remote-controlled floating mushroom greenhouse [
6,
7,
8]. It can help increase the efficiency of controlling the temperature and humidity to be most suitable for growth. Growing mushrooms in a floating greenhouse offers numerous advantages, including a consistent and high yield and the use of low-cost materials. These materials are often surplus from agriculture and industry, such as soybean and peanut soil, cotton wax, soft fillers, and water hyacinth. Furthermore, this technique allows for year-round growth and can be implemented in a limited space. After harvesting crops and removing old fertilizers, mushrooms can be re-planted in the same spot. It is feasible to plant twice a month, but there are some drawbacks. The initial investment is substantial, as a floating house and steam generator are required, along with other equipment. Additionally, there are several planting steps, and new agricultural knowledge may be necessary to address diseases and ensure proper growth [
9,
10,
11]. The food used for growing mushrooms must meet the specific demands of straw mushrooms. Those interested in cultivating this sort of mushroom should be prepared for these challenges.
A smart greenhouse is a concept that helps modify and reorient agricultural systems to support their growth and ensure food security in a changing climate. It is a method that guides the activities that need to be done to alter and sustain the environment [
12,
13]. The policy aims to achieve three key goals: a sustainable increase in agricultural production, building resilience to climate change, and reducing and eliminating greenhouse gas emissions wherever possible. Nowadays, one of the most important uses of the Internet of Things is in the field of intelligent agriculture [
14,
15]. IoT agriculture systems are used in various fields, including precision agriculture, and intelligent farming. The use of precision agriculture and smart farming techniques can make agriculture more efficient and promote intelligent crop production [
16,
17]. The parameters monitored by intelligent agricultural systems vary among studies, but most efforts involve the use of sensors to monitor temperature, humidity, soil moisture, and light intensity. Soil temperature significantly affects crop yield [
18,
19].
This research aims to investigate the fundamentals of cultivating oyster mushrooms in floating greenhouses. Following this, we will design and construct a floating greenhouse with a remote-control system that can be operated using a mobile phone and an Arduino. Finally, we will conduct tests to determine the ideal temperature and humidity levels for the growth of oyster mushrooms in comparison to traditional mushroom cultivation methods. The floating greenhouse tests will analyze variables such as growth time, temperature, humidity, and weight to determine ideal growing conditions for produce.
2. Materials and Methods
After studying important information related to greenhouse design, a floating grey oyster mushroom greenhouse was designed to test and evaluate the appropriate temperature and humidity for the growth of grey oyster mushrooms, the growth period, and mushroom weight. The design criteria and specifications are as follows: (1) The sensor control system should exhibit a high degree of user-friendliness while minimizing complexity. It should facilitate sensor-based control and allow remote operation via mobile devices; (2) The greenhouse should be easy to maintain, ensuring straightforward service and upkeep; (3) It should offer operational convenience and safety. (4) The greenhouse should be operable by a single operator and be primarily constructed from domestically available materials; and (5) The design should incorporate various standardized equipment components. In the event of damage or component malfunction, these parts must be readily removable and replaceable, with wide availability within the market.
2.1. Method for Designing and Constructing a Modern Floating Grey Oyster Mushroom Greenhouse
A floating grey oyster mushroom greenhouse is designed to have 6 main components: a base structure, a control cabinet set, a fan, a sprinkler system, mushroom shelves, and a solar cell system set, as presented in
Figure 1. The design methodology involves the collection of information according to sections, which includes the integration of knowledge and engineering principles into the design of a floating grey oyster mushroom greenhouse. The design details are as follows:
The structure is made from 2 × 2-inch square steel pipe, which is bent and welded to create dimensions of 200 cm in width, 560 cm in length, and a height of 230 cm. Its purpose is to serve as a mounting frame for use with canvas, a shading net, and a smart board to attach to the floor, as depicted in the figure below.
The mushroom shelves are crafted from 1-inch square steel pipe, which is cut and welded to achieve dimensions of 150 cm in width, 197 cm in length, and 150 cm in height. Its purpose is to provide support for the placement of mushroom spawn.
The control cabinet measures 11 cm in width, 20 cm in length, and 30 cm in height. Its primary function is to control operations and process values received from sensors. It operates within a relay set that serves as a switch for turning water pumps and fans on and off.
The ventilation fan is 8 inches in size. Its role is to lower the temperature inside the greenhouse by circulating the air. Installing fans also aids in the movement of carbon dioxide within the greenhouse, thus promoting better nutrient synthesis.
When analyzing the buoyant force, it becomes apparent that the most crucial aspect of designing a floating greenhouse is determining the number of tanks required to support the total weight of the greenhouse and all its equipment. The total number of tanks needed can be calculated by considering factors that affect the buoyant force, such as the density of the fluid (), the volume of the object submerged in the fluid (V
floating greenhouse), and gravity (g). Therefore, the equation for the buoyant force acting on a floating greenhouse can be expressed as follows:
In the figure provided below, it is focused solely on the floating greenhouse when it remains in a stationary position without any movement. Consequently, the net vertical force acting on the floating greenhouse should equal to zero, aligning with Newton’s 1st law of motion.
From Equation (1),
where
Substitute the variable from the figure below,
where F
B is Buoyant force (N), is water density (kg/m
3), is total volume of the greenhouse (m
3), X is floating volume of the greenhouse (m
3), and Y is submerged volume of the greenhouse (m
3), as presented in
Figure 2.
2.2. Method for Designing and Acquiring Image Data of a Remote-Control Mobile Phone
The research involved data collection from a greenhouse imaging system controlled by 2 wireless webcams (Vimicro USB 2.0 UVC PC Camera, Swift-Tech Electronics Co., Ltd., Shenzhen, China). Following this, a precise water spraying system was constructed. The spraying rate is adjusted in direct proportion to the growth rate of the mushrooms, a parameter that is analyzed through the utilization of an image processing algorithm. This algorithm is designed based on the ratio of mushroom density in terms of pixel area (pixel by pixel). The Digital Number (DN) values that are being obtained will be used to calibrate the delay setting for the solenoid valve device (Green Water Atlantis Technology (Thailand) Co., Ltd., Bangkok, Thailand), electric pump (Lee Sae Import (1975) Ltd., series, Bangkok, Thailand), and microcontroller board (Shenzhen Shanhai Technology Ltd. and Arduitronics Co., Ltd., Bangkok, Thailand), respectively. The pump motor’s operations are connected to a remote-control mobile phone, enabling remote control of its function. This allows for monitoring the growth rate from anywhere.
2.3. Method for Designing and Acquiring of Temperature and Humidity Control System
Design and construct a temperature control system with automatic humidification powered by solar energy. It activates when the temperature reaches 30 °C. The sensor device reports the temperature to the Module Development Board, which, in turn, triggers the Relay Module device to activate the water pump and the ventilation fan installed at the rear of the greenhouse. This action aimed to reduce the temperature and increase the humidity inside the greenhouse. When the temperature drops to 27 °C, the Relay Module will instruct the water pump to deactivate and the fan to provide immediate ventilation. Installation details and device specifications refer to the following information: 2 sets of solar panels CanadianSolar (295 Watt, Thaisolarsystem,
www.thaisolarsystem.com, Nonthaburi, Thailand), inverter set (SEOUR 24 V 3000 W; Green Water Atlantis Technology (Thailand) Co., Ltd., Bangkok, Thailand), solar charger (PWM 30 A SUOER (ST-S1230), Thaisolarsystem,
www.thaisolarsystem.com, Nonthaburi, Thailand), 2 batteries (12 V 80 A, Global House Public Co. Ltd., Roy-ed, Thailand), 2 sets of 6-slot 25 A terminal blocks (Green Water Atlantis Technology (Thailand) Co., Ltd., Pathum Wan, Bangkok, Thailand), WiFi Bluetooth Module Development Board for HW-463 ESP32 (Swift-Tech Electronics Co., Ltd., Shenzhen, China), switch equipment (Green Water Atlantis Technology (Thailand) Co., Ltd., Bangkok, Thailand), Relay Module 5 V 4 Channel (Green Water Atlantis Technology (Thailand) Co., Ltd., Bangkok, Thailand), humidity sensor (SparkFun Humidity Sensor, HIH-4030, analog output, power supply: 4.0 VDC–5.5 VDC, SparkFun Electronics, Niwot, CO, USA), temperature sensor (the Maxim Waterproof DS18B20 Sensor, Mouser Electronics, Inc., Bangkok, Thailand), two 8-inch fans (B BOSS; Green Water Atlantis Technology (Thailand) Co., Ltd., Bangkok, Thailand), and a mist spraying set (10 bar pump; Green Water Atlantis Technology (Thailand) Co., Ltd., Bangkok, Thailand).
2.4. An Image Processing Algorithm Created
Through research and information collection regarding the algorithm for processing grey oyster mushroom images, the system-specific command set, and the programming language employed in this algorithm for code writing, it has become evident that this algorithm is well-suited for the technique used to separate objects from the background. The command set was created by downloading image data from 2 wireless webcams installed along the length of the mushroom table, with a 5 m distance between the cameras. Users have the capability to select image data on a remote-control mobile phone for detecting the density and growth rate of the mushrooms. The image was divided into 4 parts (4 sub-images) and then processed by detecting the size of the surrounding borders of the grey oyster mushroom. This analysis aims to calculate the percentage of mushroom density within the planting area. The program will display the information regarding the detected border area in real-time through a window, allowing the system to stay updated with the ongoing process. Subsequently, research was conducted by modifying the color images into black and white images and adjusting the time spent in the spraying area to match the target location, corresponding to the percentage of mushroom density per unit area. The developed system utilizes a solenoid valve for controlling the opening and closing of the nozzle. The final image, which records the processed actions, is stored in the hard disk memory in both grayscale and bimodal formats.
2.5. Temperature Sensor Assemble
In the process of selecting temperature sensor equipment, one highly favored option is the Maxim Waterproof DS18B20 Sensor, Mouser Electronics, Inc., Bangkok, Thailand. This sensor operates as an analog device, producing an output voltage ranging from 3.0 V to 5.5 V. This voltage output is then interpreted to obtain temperature values in Celsius. This sensor device is known for its affordability and versatility. It offers a wide temperature detection range, spanning from −55 to 125 °C. Moreover, the Maxim Waterproof DS18B20 Sensor, Thief River Falls, MN, USA, is not limited to greenhouse applications alone; it is also employed to monitor temperature within drying chambers. The sensor’s primary function is to regulate room temperature by providing heating at night and controlling the fan during the daytime. Here are the specifications of the temperature sensor device: Waterproof Digital Temperature Sensor, model Maxim Waterproof DS18B20 Sensor, Thief River Falls, MN, USA, Usable with 3.0 V to 5.5 V power/data, ±0.5-degrees Accuracy from −10 degrees to +85-degrees, Usable temperature range: −55 to 125 degrees; uses a 1-wire interface that requires only one digital pin for communication. Unique 64-bit ID burned into chip, and Stainless-steel tube 6 mm in diameter by 50 mm long.
2.6. Humidity Sensor Assemble
Several sensor devices are available for measuring temperature and humidity, including the DHT11 and DHT22. These sensors provide digital output values, allowing for immediate use in temperature and humidity detection. These sensors boast anti-interference capabilities, ease of integration, high accuracy, low power consumption, and compact size. The DHT22 sensor has been applied to create a wireless moisture meter, delivering highly accurate results with an average data retrieval error rate of just 2%. Here are the specifications for the humidity sensor device: Input Range: 0 to 100% RH, Working Range: 5 to 95% RH, Response Time: 60 s typical (90% of Range), Accuracy: ±2% RH, Output type: Current (2 Wire), Output range: 4 to 20 mA, Loop powered: 12 to 35 VDC, Output Impedance: Max. 600 Ω @ 24 VDC, and Operating Humidity: 5 to 95% RH.
2.7. Soil Moisture Sensor
In the process of choosing a soil moisture sensor, researchers must gather both yield and moisture data simultaneously to ensure an accurate yield estimate. To achieve this, a conductive sensor device (SparkFun Humidity Sensor, HIH-4030, analog output, power supply: 4.0 VDC–5.5 VDC, SparkFun Electronics, Niwot, CO, USA) was installed in the floating greenhouse. This sensor estimates humidity by analyzing the dielectric properties of the air circulating within the greenhouse. It is particularly beneficial for monitoring and optimizing grey oyster mushroom production.
2.8. Wireless Connection
When it comes to selecting a wireless connection, the Internet of Things (IoT) commonly relies on wireless technologies for various applications. Among the technologies employed in the IoT, Bluetooth and Wi-Fi stand out, with Wi-Fi often being preferred for long-distance applications. These technologies exhibit variations in terms of power consumption, transmission range, and susceptibility to interference from other signals. All of these wireless technologies are viable options for use in floating greenhouses, with due consideration for the specific field conditions.
2.9. Monitoring Using Arduino UNO
In order to select an Arduino board, these boards are designed with open-source licenses, making them accessible for individuals seeking to create electronic devices even with limited technical knowledge. Arduino board devices are programmable using the Arduino IDE, and the program can be easily uploaded to Arduino via USB cable. This simplicity and openness make Arduino a valuable choice for a wide range of electronic projects. Following this setup, Arduino operates independently. Arduino board devices find extensive application in agricultural activities, encompassing tasks such as monitoring plant growth, controlling irrigation, inspecting areas, measuring water quality, and monitoring pest populations. Furthermore, the data collected by Arduino can be stored in a database for reference in subsequent growing seasons. The specifications of the Arduino board are as follows: an NI myRIO Board (NI, Austin, TX, USA), built on the technology of the NI CompactRIO platform. The NI myRIO board is equipped with the latest Zynq fully programmable System on Chip (SoC) technology from Xilinx, San Jose, CA, USA which incorporates an ARM Cortex processor with a dual-core A9, along with an FPGA boasting 28,000 programmable logic cells. Leveraging the capacities of the NI LabVIEW graphical programming environment, the NI myRIO-Xilinx Zynq-7010 was chosen as the central processing unit (CPU) for the data collection module within the mushroom greenhouse’s water spraying monitoring and control system. This module predominantly comprises a power conversion circuit, a sensor signals receiving circuit, an analog-to-digital conversion circuit, and a bus communication circuit.
2.10. Statistical Analysis
All measurements were performed in triplicates. The experiment data were analyzed using SPSS 10.0 software. The experiments were accomplished using a randomized complete block design (RCBD). An analysis of variance (ANOVA) was used to determine the significance between treatments, and Duncan’s Multiple Range test (DMRT) was used to compare of the mean at 95% confidence level.
2.11. System Calibration in Floating Greenhouse
Calibration data from the developed system designed for both the camera accuracy calibration process and the precision of the specific algorithm used in photo processing were developed to perform aerial calibration for 2 wireless webcams by establishing a standard reference frame with dimensions of 65 cm in width and 50 cm in length. Subsequently, the color values of sample sheets were determined to serve as a reference for assessing the growth rate of oyster mushrooms, specifically within the yellow and green groups. These color sample sheets have dimensions of 2.54 cm × 2.54 cm. The color sample sheet group was established in the experiment at various percentages: 5% (24 pieces), 10% (48 pieces), 15% (72 pieces), and 20% (97 pieces), and they were positioned at different heights: 0.4 m, 0.6 m, 0.8 m, and 1.0 m, respectively. This calibration process involves 2 aspects: firstly, the calibration data from the base system for visual inspection, and secondly, testing the relationship between brightness, which varies with the time of the day.
2.12. Engineering Economy Analysis and Evaluation
Operating costs: The operation costs are calculated by considering both fixed costs and variable costs.
2.12.1. Fixed Cost
Depreciation of floating greenhouse refers to the diminishing value of a remote-controlled floating greenhouse over time, whether it is in active use or not. It involves estimating the value of the remote-controlled floating greenhouse at the end of the year, which can then be compared to its initial value at the beginning of the year as described in Equation (3):
where DP is depreciation (USD), P is price of the floating greenhouse (USD), S is selling price (USD), and L is useful life of the floating greenhouse (year).
2.12.2. Interest
Interest expenses arise as a result of the investment made in a remote-controlled floating greenhouse used for business purposes. Even if the investment amount is not borrowed from external sources, it is imperative to account for this expense. This is because the funds used here could have otherwise been deployed in other business ventures. The initial investment cost for the remote-controlled floating greenhouse is notably high, particularly during the initial years. A significant portion of this cost is attributed to the depreciation of the greenhouse. By calculating the depreciation of the greenhouse, the corresponding interest value can be determined, as illustrated in Equation (4):
where P is price of the floating greenhouse (USD), S is selling price (USD), and I is interest rate (%).
Variable cost: The variable costs are associated with the usage of the remote-controlled floating greenhouse, including maintenance costs.
2.12.3. Break-Even Point
In order to compare the costs of owning a remote-controlled floating greenhouse versus renting one, the contractor must carefully evaluate the required greenhouse space or the break-even point, which is calculated as depicted in Equation (5):
where BEP is the Break-Even point, Fc is fixed cost, W
r is wage, and C
w is operating costs.
2.12.4. Payback Period of Remote-Controlled Floating Greenhouse
The specifics of the variables employed in the calculation of the payback period are as follows: Variable costs encompass the combined expenses associated with repairs and maintenance. Total costs, depicted in Equation (6), constitute the sum of variable costs and interest:
where P is price of the floating greenhouse (USD) and S is net price per year (USD).
5. Conclusions
Observing the challenges faced in greenhouse cultivation, it becomes evident that growers invest a significant amount of time and effort, leading to work-related fatigue. Moreover, mushroom production volumes and the quality of the mushrooms often lack consistency. In response to these issues, researchers have devised a solution by designing and constructing a modern floating gray mushroom greenhouse equipped with remote control capabilities through mobile phones and Arduino technology. The study encompasses a thorough examination of various characteristics associated with a remote-controlled floating greenhouse, along with the investigation of suitable methods for temperature and humidity control that facilitate optimal oyster mushroom growth. The ultimate goal is to develop a functioning prototype of a remote-controlled floating greenhouse, with its central components featuring an automatic temperature and humidity control system, the structural design of the floating greenhouse, an integrated solar cell system, etc.
Through the process of testing and comparing floating greenhouses equipped with automatic control systems with the conventional greenhouses and their influence on the growth of oyster mushrooms, the study aims to determine the most suitable temperature and humidity values. This data will then be employed to configure an automatic temperature and humidity control unit, which will maintain the temperature within the range of 27–30 °C and humidity within the range of 70–80%. The advantage of using automated systems is that they allow for consistent control of temperature and humidity levels within the greenhouse. This contrasts with the traditional method of manually watering the greenhouse, which can lead to fluctuations in temperature and humidity, potentially resulting in undesirable conditions. The test results of the automatic temperature and humidity control system demonstrated enhanced growth compared to traditional cultivation methods. This resulted in a faster time to harvest, with mushrooms ready for harvesting one day earlier than the conventional approach. The accuracy of the mushroom weight percentage prediction and the precision of the image processing algorithm may be impacted by the height of the webcam. It was discovered that the most accurate weight percentage for mushrooms was 0.74 kg when the webcam was positioned at a height of 0.8 m. Moreover, the yield of mushrooms in the automatic system was notably higher, reaching 1.81 kg per day, in contrast to 1.22 kg per day in the conventional method, accounting for 48.3% more than the conventional system. Subsequently, the viability of cultivation in remote-controlled floating greenhouses was thoroughly examined, revealing a cost of USD 2.88 per kilogram. The financial analysis indicates a relatively short payback period of 41.73 months, or approximately 3.47 years, with a break-even point of 580.21 h per year when compared to conventional standard greenhouses.
This research has uncovered several potential suggestions for further development and enhancement to elevate the system’s accuracy and efficiency. For those seeking higher income and a quick payback period, consider increasing the number of oyster mushroom spawns. Additionally, when it comes to harvesting oyster mushrooms, it is advisable to collect them in the morning rather than later in the day. Morning harvesting ensures that the oyster mushrooms are fully formed, allowing for a higher market value. Lastly, consider raising the roof height of the greenhouse to mitigate heat buildup within the structure.