Monitoring Ambient Parameters in the IoT Precision Agriculture Scenario: An Approach to Sensor Selection and Hydroponic Saffron Cultivation

The world population is on the rise, which demands higher food production. The reduction in the amount of land under cultivation due to urbanization makes this more challenging. The solution to this problem lies in the artificial cultivation of crops. IoT and sensors play an important role in optimizing the artificial cultivation of crops. The selection of sensors is important in order to ensure a better quality and yield in an automated artificial environment. There are many challenges involved in selecting sensors due to the highly competitive market. This paper provides a novel approach to sensor selection for saffron cultivation in an IoT-based environment. The crop used in this study is saffron due to the reason that much less research has been conducted on its hydroponic cultivation using sensors and its huge economic impact. A detailed hardware-based framework, the growth cycle of the crop, along with all the sensors, and the block layout used for saffron cultivation in a hydroponic medium are provided. The important parameters for a hydroponic medium, such as the concentration of nutrients and flow rate required, are discussed in detail. This paper is the first of its kind to explain the sensor configurations, performance metrics, and sensor-based saffron cultivation model. The paper discusses different metrics related to the selection, use and role of sensors in different IoT-based saffron cultivation practices. A smart hydroponic setup for saffron cultivation is proposed. The results of the model are evaluated using the AquaCrop simulator. The simulator is used to evaluate the value of performance metrics such as the yield, harvest index, water productivity, and biomass. The values obtained provide better results as compared to natural cultivation.


Introduction
The exponential increase in the population, which will reach 9.8 billion by year 2050, will have its maximum impact on developing nations such as India [1]. This will lead to an increase in the demand for food. Traditional methods of cultivation and the deficit of land available for agriculture place limits on the yields obtained from agriculture. To The potential of saffron cultivation in India can be increased by propagating it by artificial means using IoT sensors [3,5,10]. The conditions and the sensor configurations that are used for artificial and natural media are different [5,10]. Although researchers have worked on artificial saffron cultivation, there is a lack of studies related to the criteria for choosing sensors, a proper model for growth, and detailed sensor configurations that can be used in artificial environments. The vegetative growth cycle of Saffron can be seen in Figure 2.
The availability of different sensors is shown in Figure 2, since monitoring a common parameter also creates a great deal of chaos. In order to solve this problem, all the parameters related to sensor selection, such as the range, sensitivity, error, resolution, precision, The internet of things has enhanced the potential of all sectors of life, including agriculture. Various innovative agricultural practices and the presence of different sensors for all kinds of agricultural practices, such as pest detection, irrigation, etc., are evolving day by day, increasing the productivity and rendering tasks easier [4]. According to different reports, the population of the world will increase by 25 percent of the present value and reach approximately 10 billion. In order to accommodate this change, there is a great need for increases in agricultural efficiency and productivity [5]. The evolution of smart farming, or precision agriculture, in the last decade has led to better decision making through the collection and analysis of data. As shown in Figure 1, smart agriculture consists of different layers, with a user interface layer for providing the applications [6]. The detailed architecture of the IoT in relevance to agriculture is shown in Figure 1.
Agricultural sensors have improved data analysis to a great extent by providing the most accurate data with very low error percentages. This has led to increased productivity, a lack of degradation of natural resources, easy supply chain management, and proper water resource usage. The selection of sensors for a specific environment and crop's growth is crucial for accurate prediction and performance in smart farming. Using sensors, the farmers can measure properties such as the temperature, moisture, humidity, pH, soil properties, etc., resulting in the maximization of the yield and quality of crops [7,8]. The performance of sensor data generation depends on many factors, such as the node placement and network performance [9].
Sensor data are collected and analyzed by wireless transmission through the network to the cloud, allowing the user to access the analyzed data and control the farm or field environment remotely. However, there are some complications related to the use and selection of sensors in developing nations such as India, which include their high cost, feasibility, reliability, the time consumed during their implementation, etc. Additional complications also include Wi-Fi availability, the customization of sensors for a particular environment, error handling, and fault tolerance [9].
The potential of saffron cultivation in India can be increased by propagating it by artificial means using IoT sensors [3,5,10]. The conditions and the sensor configurations that are used for artificial and natural media are different [5,10]. Although researchers have worked on artificial saffron cultivation, there is a lack of studies related to the criteria for choosing sensors, a proper model for growth, and detailed sensor configurations that can be used in artificial environments. The vegetative growth cycle of Saffron can be seen in Figure 2.
The availability of different sensors is shown in Figure 2, since monitoring a common parameter also creates a great deal of chaos. In order to solve this problem, all the parameters related to sensor selection, such as the range, sensitivity, error, resolution, precision, etc., need to be minutely analyzed [11]. This paper is the first of its kind to emphasize sensor selection criteria for IoT-based saffron cultivation. The paper highlights the sensors most frequently used in automated environments and the criteria for choosing the suitable ones as per the environment. The outcomes of this research could be of great value and benefit to new researchers who are working on developing an IoT-based automated framework for saffron cultivation. The major contributions of this paper are as follows: • A detailed analysis of the sensors required for artificial saffron cultivation and the factors motivating the selection of sensors in PA (precision agriculture). • An experimental setup for the hydroponic cultivation of saffron with different sensors, devices, and controlled agronomical variables.

•
The implementation of the system model and block diagram, consisting of sensors deployed on the basis of the study of the hydroponic growth of saffron. • An evaluation of the designed system model using AquaCrop Simulator for a comparison between the different output parameters.  The implementation of the system model and block diagram, consisting of sensors deployed on the basis of the study of the hydroponic growth of saffron.  An evaluation of the designed system model using AquaCrop Simulator for a comparison between the different output parameters. The boom of IoT has led the sensor manufacturing industry to blossom, earning a profit of 4 billion USD annually. The availability of different sensors for a single parameter, as shown in Figure 3, has led to a great deal of chaos in the process of choosing a sensor for analyzing data in a particular environment. As a result, a wide spectrum of sensors are used, such as temperature sensors, motion sensors, proximity sensors, pressure sensors, position sensors, etc. [2,4,12]. The plant chosen for this study is saffron due to its rarity and expensiveness on the market [13]. Saffron or 'red gold' is derived from the stigma of the Crocus Sativus plant. It is propagated only by vegetative means using corms. The vegetative cycle of saffron lasts for about 240 days (approx.) and involves five major phases: sprouting (September-October), flowering (October-November), leaf development (October-April), the growth and multiplication of daughter corms (November- The boom of IoT has led the sensor manufacturing industry to blossom, earning a profit of 4 billion USD annually. The availability of different sensors for a single parameter, as shown in Figure 3, has led to a great deal of chaos in the process of choosing a sensor for analyzing data in a particular environment. As a result, a wide spectrum of sensors are used, such as temperature sensors, motion sensors, proximity sensors, pressure sensors, position sensors, etc. [2,4,12]. The plant chosen for this study is saffron due to its rarity and expensiveness on the market [13]. Saffron or 'red gold' is derived from the stigma of the Crocus Sativus plant. It is propagated only by vegetative means using corms. The vegetative cycle of saffron lasts for about 240 days (approx.) and involves five major phases: sprouting (September-October), flowering (October-November), leaf development (October-April), the growth and multiplication of daughter corms (November-April), and dormancy (May-August) [10]. In Figure 3, sensors used for monitoring different agriculture parameters such as the soil moisture, luminosity, and humidity, among others, are shown. to sensor selection and the factors to be considered. Section 4 outlines the major factors to be considered when selecting sensors and discusses the proposed framework and the status of the hydroponic cultivation of saffron using the designed setup. Section 5 shows the results from AquaCrop and provides an analysis of the different research questions discussed in Section 3. Section 6 explains the future prospects of the developed smart system, with concluding remarks.

Related Work
The work performed by researchers in precision agriculture can be discussed under two major headings. The former deals with all the different kinds of sensors used in the cultivation of different kinds of crops in diverse media. The important factors affecting the cultivation of crops are also discussed. The research conducted thus far and the sensors most commonly used for five major agronomical factors of saffron are discussed, along with their related characteristics, in the form of Tables 1 and 2.

Sensors Used in Precision Farming
Different researchers have worked on the IoT implementation and applications in the agricultural sector. Starting from the year 2003, the number of publications related to precision agriculture have increased significantly. However, there are different dimensions of precision agriculture which have not been addressed. Most of the research on the use The structure of the paper is arranged as follows: Section 2 presents a detailed analysis of all the factors involved in sensor selection and discuss the sensors used by different researchers, to date, in smart farming. Section 3 illustrates the research problems related to sensor selection and the factors to be considered. Section 4 outlines the major factors to be considered when selecting sensors and discusses the proposed framework and the status of the hydroponic cultivation of saffron using the designed setup. Section 5 shows the results from AquaCrop and provides an analysis of the different research questions discussed in Section 3. Section 6 explains the future prospects of the developed smart system, with concluding remarks.

Related Work
The work performed by researchers in precision agriculture can be discussed under two major headings. The former deals with all the different kinds of sensors used in the cultivation of different kinds of crops in diverse media. The important factors affecting the cultivation of crops are also discussed. The research conducted thus far and the sensors most commonly used for five major agronomical factors of saffron are discussed, along with their related characteristics, in the form of Tables 1 and 2.

Sensors Used in Precision Farming
Different researchers have worked on the IoT implementation and applications in the agricultural sector. Starting from the year 2003, the number of publications related to precision agriculture have increased significantly. However, there are different dimensions of precision agriculture which have not been addressed. Most of the research on the use of IoT for agriculture is based on industrial crops, with much less attention devoted to economically potent but rare crops such as saffron [14]. There are far less research contributions regarding the sensor configurations used for artificial saffron cultivation [15].
In [16], the authors studied the use of soil moisture sensors to measure the water content of soil. It was found that there are various sensors, such as granular matrix sensors, VH400 sensors, and tensiometers for soil moisture measurement on the market, varying in their performance, accuracy, power consumption, cost, and the type of soil. The cost was found to be the most important factor influencing the selection of sensors.
In [17], the authors proposed a low-cost precision agriculture network using Lora WAN by utilizing low-cost sensors for soil water content monitoring and comparing the results obtained with a commercial sensor from Sentek. The results were compared in different soils, such as silty and loamy soils. The results obtained indicated the satisfactory accuracy of the moisture measurements; however, reliability issues were observed, which can be addressed by using commercial sensors, which have a very high price range. The paper focuses on sensors for soil water content analysis, without discussing other important parameters such as the temperature, pH, relative humidity, and light.
In [18], the authors conducted an extensive literature survey on the implementation of precision agriculture, and it was found that there is no proposed framework to aid in the implementation of PA (precision agriculture). It was also observed that remote sensors were among the topmost technologies used in PA. The authors also pointed out that the implementations of PA in different studies have mostly been carried out on five different crops, including corn, wheat, soyabean, sugarcane, grapes, and cotton. None of the implementation-related papers consider saffron and the sensor selection criteria and configuration used for its implementation.
In [19], sensors are explored as the most important tool for the implementation of IoT. A wide variety of agricultural sensors, based on their applications, are presented. The sensors were classified as optical sensors, electromagnetic sensors, electrochemical sensors, location sensors, acoustic sensors, and airflow sensors. It was also found that agricultural sensors enhance the productivity of agriculture. Some of the challenges faced in the implementation of sensors in IoT networks include their customization, uninterrupted Wi-Fi connectivity, the handling of errors and faults, and the selection of the right sensors for different environments.
In [20], soil moisture sensors were used to monitor the moisture content of soil, and humidity measurements were performed using a DHT22 sensor in a natural medium, and the supply of water, if required, was automated through a web-based application. The authors did not discuss other important parameters for growth using the system. The results obtained were not defined for any particular crop, as the water and humidity requirements of each crop are different.
The detailed analysis of the different studies carried out by researchers in the field of PA can be summarized in Table 1, along with their features and the shortcomings of the presented study.
As per the survey conducted, it was found that there are different sensors for the same parameter on the market. It is always difficult to choose the best sensor for the research and project work.

Problem Formulation
The sensors selected for artificial cultivation and natural cultivation differ greatly. The presence of different sensors also creates a great deal of confusion due to absence of a proper standard for consideration. It was also observed that there is no sensor-based system for artificial saffron cultivation guiding the sensor selection procedure. Thus, there is a great need to define the sensor configuration for saffron cultivation in an artificial medium. Hence, using the proposed novelty-based model, we define all the sensors required for saffron cultivation, along with their details, configurations, and features for an optimal yield and quality of the saffron. Moreover, it was also observed that, due to the lack of research papers related to the IoT and soilless saffron cultivation, different research questions have not been addressed in any of the papers. These questions are: RQ1 What is the percentage increase in crops cultivated using artificial methods and IoT? RQ2 What criteria are used to select sensors for soilless saffron cultivation? RQ3 What are the most frequently used sensors in IoT-based artificial saffron cultivation? RQ4 What is the percentage use of sensors for different practices related to saffron cultivation? RQ5 What is the production increase in major crops of the world and saffron after the use of the IoT?
Due to the immense importance of the above-stated research questions, a thorough investigation of the literature was performed to obtain answers to these questions. For new researchers aiming to cultivate saffron in an artificial medium using the IoT and sensors, these questions are of the utmost importance, as none of the existing studies in the literature provide answers to them. The responses to these questions are discussed in Section 5.

Proposed System Model
The proposed system model was designed for the artificial cultivation of saffron in a water medium using hydroponic the NFT (nutrient film technique). The system model is implemented using solar energy to minimize its energy consumption and make the system cost-effective. The model had already been designed, and the saffron corms were in the incubation period. The hardware components used, their configuration, and the block diagram are described in the following subsections.

Hardware Setup and Design
On the basis of the range of values that are sensed for saffron cultivation, the sensors chosen were DHT-11 for the temperature and humidity control, an industrial-grade Ph sensor, PH2.0 Interface, for the pH, a load cell sensor for the weight monitoring of the corms, the Seed Studio Grove TDS Sensor for the water flow and turbidity, and TSL2561 for the luminosity. Water flow is an important parameter in a hydroponic system and can be obtained using the fluid dynamic expressions given in Equations (4)- (8). Although the other sensors of temperature and humidity offered a greater precision and wider range than DTH-11, due to its cost and the fact that the range to be monitored and controlled did not exceed 27 • C for the temperature and 80% for the humidity, DHT-11 was the best choice. Similarly, for the pH, the industrial-grade Ph sensor pH 2.0 Interface was chosen because it is economical, offers a higher precision and sampling rate and lower error rates, and has smaller dimensions as compared to the other existing options. In our setup, the load cell is used to calculate the corms' weight, as it offers an accuracy of 0.02% and has lower sampling rates. Although the cost of the load sensor is slightly higher than its counterpart, due to the precision required for measuring the corm weight and the fact that the corm weight is a parameter of very high importance, this sensor was chosen. To control the luminosity, TSL2561 was used due to its high accuracy and low cost.
The simulation environment used for configuring the sensors and all the electronic devices before installation was Node Red. Node Red is a device-based flow editor which ensures the compatibility of all the sensors, enabling them to operate together, before installation. Keeping the cost and requirements in view, the microcontroller used was ESP32 WROOM 32, which is a Wi-Fi and Bluetooth microcontroller unit module with inbuilt networking capabilities and high scalability options. The recommended operating voltage and temperature for ESP32 WROOM 32 are 2.7 V to 3.6 V and −40 • C to 85 • C, which are in line with our requirements. The designed circuit diagram, as shown in Figure 4, consists of different sensors and hardware components connected to the microcontroller, which can be listed as follows: The connections between the hardware devices and the sensors can be seen in Figure 4.  ESP32 WROOM 32 is a dual-core, low-power-consuming microcontroller with a very reasonable cost. It has integrated Wi-Fi and Bluetooth. The flash memory in this MCU is 4 MiB, with a RAM equal to 320 KiB and ROM equal to 448 KiB. This MCU is programmable in languages such as Visual Studio Code, Micro Python, etc. It is very secure due to its use of flash encryption and WPA encryption standards. It consists of 48 pins, and in the proposed cultivation model, all the sensors and devices are connected to different pins to ensure the automated functioning of the sensors and hardware devices. To measure the humidity and temperature, two DHT11 sensors are deployed, both of which are connected to ESP32. One of the two sensors measures the temperature outside the cultivation medium, and the other is responsible for measuring the outside temperature. In this way, both the temperatures can be compared, and actions, such as turning on the fan or heater, can be controlled, keeping the temperature in the optimal range. The sensor used for measuring the corm weight is a load cell sensor. It has an operating voltage of 5 V to 12 V, with a precision value of 0.05%, making it ideal for our hydroponic system. The most effective parameters for enhancing the saffron yield and quality are the corm size. Hence, this requires great accuracy in terms of the measurements, which can be achieved by using the load cell sensor.
Since the optimal pH value to be maintained for the nutrient solution used is 6-6.4, the industrial-grade Ph sensor, pH 2.0 Interface, is used. This sensor not only senses the pH value in real time but also controls it by altering the flow rate of the nutrient solution. It also offers precision values as low as ±0.01 pH, making it ideal for a hydroponic system.
The Seed Studio Grove TDS sensor is used to monitor the water quality and presence of unwanted pathogens or substances that are harmful to a hydroponic system. The operating voltage of this sensor, measured precision of the range of values, and other details are given in Table 2. The water flow sensor used in the hydroponic system is YF5201. This sensor has an operating range of up to 80 mL/h, making it ideal for a hydroponic system. The Servo Motor 9g is a small actuator controlled by ESP 32, responsible for controlling the pumping of the water from the nutrient tank of the hydroponic system into the growth chamber, which is placed on its top. It requires a DC supply of 4.8 V to 6 V, with a duty cycle of 1.5 ms. It functions with the flow sensor to control the flow rate of the nutrient ESP32 WROOM 32 is a dual-core, low-power-consuming microcontroller with a very reasonable cost. It has integrated Wi-Fi and Bluetooth. The flash memory in this MCU is 4 MiB, with a RAM equal to 320 KiB and ROM equal to 448 KiB. This MCU is programmable in languages such as Visual Studio Code, Micro Python, etc. It is very secure due to its use of flash encryption and WPA encryption standards. It consists of 48 pins, and in the proposed cultivation model, all the sensors and devices are connected to different pins to ensure the automated functioning of the sensors and hardware devices. To measure the humidity and temperature, two DHT11 sensors are deployed, both of which are connected to ESP32. One of the two sensors measures the temperature outside the cultivation medium, and the other is responsible for measuring the outside temperature. In this way, both the temperatures can be compared, and actions, such as turning on the fan or heater, can be controlled, keeping the temperature in the optimal range. The sensor used for measuring the corm weight is a load cell sensor. It has an operating voltage of 5 V to 12 V, with a precision value of 0.05%, making it ideal for our hydroponic system. The most effective parameters for enhancing the saffron yield and quality are the corm size. Hence, this requires great accuracy in terms of the measurements, which can be achieved by using the load cell sensor.
Since the optimal pH value to be maintained for the nutrient solution used is 6-6.4, the industrial-grade Ph sensor, pH 2.0 Interface, is used. This sensor not only senses the pH value in real time but also controls it by altering the flow rate of the nutrient solution. It also offers precision values as low as ±0.01 pH, making it ideal for a hydroponic system.
The Seed Studio Grove TDS sensor is used to monitor the water quality and presence of unwanted pathogens or substances that are harmful to a hydroponic system. The operating voltage of this sensor, measured precision of the range of values, and other details are given in Table 2. The water flow sensor used in the hydroponic system is YF5201. This sensor has an operating range of up to 80 mL/h, making it ideal for a hydroponic system. The Servo Motor 9g is a small actuator controlled by ESP 32, responsible for controlling the pumping of the water from the nutrient tank of the hydroponic system into the growth chamber, which is placed on its top. It requires a DC supply of 4.8 V to 6 V, with a duty cycle of 1.5 ms. It functions with the flow sensor to control the flow rate of the nutrient solution for optimal results. The system is also equipped with three relays operating at 12 V/5 A.
Relays are electromechanical switches which control AC devices using DC power. In the proposed system, relays are used for controlling the heater, battery, pump, and solenoid valve. The solenoid valve in the system is responsible for regulating the water flow and mixing of nutrient solutions in the water. The proposed system also consists of an LED emitting white light, as the saffron plant needs light for 8 h a day for its optimal growth and flowering. Since the corms are sown in August, there are decreasing temperatures that are not optimal for saffron cultivation in many places. This problem is solved by using the 1000 W heater, operated by one of the relays to control the temperature for the optimal growth of the plants. A solar panel and a battery are also used, which are connected to another MCU, serving as sustainable power sources and ensuring the operation of the designed hydroponic system using the dual modes of the power supply. All the readings from the different sensors are indicated by a 16*12 LCD, which is controlled by both the MCU's, displaying data from time to time.

Block Diagram and Working
Saffron cultivation in the proposed system is performed using hydroponics. This refers to the cultivation of plants in a soilless medium using water and the necessary nutrients. There are many methods of hydroponic cultivation, and the method used in the given system is NFT, which we selected to make the system reliable and eliminate water wastage. The system model consists of two ESP32 units. In one of the subsystems, as shown in Figure 5, the MCU is connected to the solar panel. The solar panels are equipped with voltage and control sensors ensuring the conversion of the DC power into AC, which is further lowered to suit the sensors and other devices using PWM (pulse width modulation) through a DC-DC controller. The derived power is stored in the battery, which can be used to operate part of the hydroponic system in times of power failure. solution for optimal results. The system is also equipped with three relays operating at 12 V/5 A. Relays are electromechanical switches which control AC devices using DC power. In the proposed system, relays are used for controlling the heater, battery, pump, and solenoid valve. The solenoid valve in the system is responsible for regulating the water flow and mixing of nutrient solutions in the water. The proposed system also consists of an LED emitting white light, as the saffron plant needs light for 8 h a day for its optimal growth and flowering. Since the corms are sown in August, there are decreasing temperatures that are not optimal for saffron cultivation in many places. This problem is solved by using the 1000 W heater, operated by one of the relays to control the temperature for the optimal growth of the plants. A solar panel and a battery are also used, which are connected to another MCU, serving as sustainable power sources and ensuring the operation of the designed hydroponic system using the dual modes of the power supply. All the readings from the different sensors are indicated by a 16*12 LCD, which is controlled by both the MCU's, displaying data from time to time.

Block Diagram and Working
Saffron cultivation in the proposed system is performed using hydroponics. This refers to the cultivation of plants in a soilless medium using water and the necessary nutrients. There are many methods of hydroponic cultivation, and the method used in the given system is NFT, which we selected to make the system reliable and eliminate water wastage. The system model consists of two ESP32 units. In one of the subsystems, as shown in Figure 5, the MCU is connected to the solar panel. The solar panels are equipped with voltage and control sensors ensuring the conversion of the DC power into AC, which is further lowered to suit the sensors and other devices using PWM (pulse width modulation) through a DC-DC controller. The derived power is stored in the battery, which can be used to operate part of the hydroponic system in times of power failure.  The proposed smart hydroponic system, shown in Figure 6, can be used to maximize the efficiency parameters, such as the yield and quality. This model shows the cultivation of saffron in a soilless medium based on the minimization of the cost and use of renewable sources of energy. It makes use of solar energy, enabling the use of cost-effective alternatives and the system's use in areas where electricity is scarce [55]. NFT is used for the water and nutrient uptake, enabling the recycling of the water. The components of the system include its dual power supply, plant growth chamber, smart corm weight basket, nutrient tank, interface, and cloud storage for the data. Initially, the user selects the power supply mode, and the minerals and nutrients in the tank are transported to the growing plants using the pump. sources of energy. It makes use of solar energy, enabling the use of cost-effective alternatives and the system's use in areas where electricity is scarce [55]. NFT is used for the water and nutrient uptake, enabling the recycling of the water. The components of the system include its dual power supply, plant growth chamber, smart corm weight basket, nutrient tank, interface, and cloud storage for the data. Initially, the user selects the power supply mode, and the minerals and nutrients in the tank are transported to the growing plants using the pump.
The synchronization and data sharing between the units can be seen in Figure 6. Different agronomical variables such as the temperature, corm size, pH, mineral concentration, and electroconductivity of the solution are analyzed at short intervals by the sensors deployed, and the data are stored on the cloud, shared on a real-time basis on the mobile and laptop interfaces, and used for the predictive analysis. The different minerals required by the saffron for cultivation are mixed with water in the required proportions and then pumped into the growth chamber [56]. The required mineral concentration provided to the growing plants is identified using Equations (1)-(3). After checking the weight of the corms using smart basket, the mass and size (>10 gm) parameters are used to sort the high-quality corms to be used for the sowing [57]. The selected corms are treated with a Tiabendazole solution for protection against fungal infections [58]. The nutrients mixed in oxygenated water are continuously circulated at the The synchronization and data sharing between the units can be seen in Figure 6. Different agronomical variables such as the temperature, corm size, pH, mineral concentration, and electroconductivity of the solution are analyzed at short intervals by the sensors deployed, and the data are stored on the cloud, shared on a real-time basis on the mobile and laptop interfaces, and used for the predictive analysis. The different minerals required by the saffron for cultivation are mixed with water in the required proportions and then pumped into the growth chamber [56]. The required mineral concentration provided to the growing plants is identified using Equations (1)-(3).
After checking the weight of the corms using smart basket, the mass and size (>10 gm) parameters are used to sort the high-quality corms to be used for the sowing [57]. The selected corms are treated with a Tiabendazole solution for protection against fungal infections [58]. The nutrients mixed in oxygenated water are continuously circulated at the desired flow rate using the pump and air stone. The desired space between two corms is calculated to ensure the maximum productivity [59]. The flowering of saffron plants in hydroponic medium is expected to occur after 90 days. The stigmas collected from the saffron flowers are dried (moisture < 30 percent) before being made available on the market. Table 3 presents a list of suitable, effective nutrients and different parameters, with the optimized values required for the soilless cultivation of saffron [56][57][58][59]. One of the major challenges when using a hydroponic system is maintaining the ion concentration of the nutrients used in the solution of the hydroponic system. To avoid nutrient imbalance, the electroconductivity of the system needs to be maintained [59][60][61]. The total ion concentration can be controlled while minimizing nutrient imbalance through the injection of the nutrient solution. For the hydroponic system to operate efficiently, the nutrient mixing procedure needs to be understood. The nutrients in the nutrient solution are measured to detect changes in the nutrient tank, and then the process of mixing the nutrients is conducted at intervals [62]. This can be shown in the form of Equation (1), as: where C t is the maximum achievable capacity of the solution in the tank; EC t is the target electroconductivity value in (dS m −1 ) to be achieved; C c and EC c are the current volume of the nutrient-rich solution and current electroconductivity value of the nutrient tank, respectively; U represents the nutrients absorbed by the plants in milli; and b is the empirical coefficient for the conversion of the EC and concentration of the salt. A value of the coefficient of b = 9.819 is considered suitable for hydroponic nutrient solutions [63], while an EC t value range of 0.8-4.0 dSm −1 can be considered suitable. Using Equation (1), the amount of nutrient solution required, can be calculated by using Equation (2): where C w is the water required; EC w is the electroconductivity of the water; C stk is the amount of nutrients required in the solution; and EC stk is the conversion factor of the milli unit concentration of the solution to EC. C t should be equal to the sum of C c , C w , and C stk . Therefore, the following equation (Equation (3)) can be derived using this relationship: After calculating C stk and C w , the obtained values are provided to the sensors and microcontroller as the input values for the operation of the pumps and solenoids valves.
The flow rate (in Table 3) of the water in a hydroponic system is yet another important parameter, which depends on the diameter of the pipe used and is governed by the equations of the fluid dynamics related to continuity, energy, and momentum. It was observed that for a flow pipe with a diameter of 9.5 mm, the flow rate was estimated to be 1.5 L min −1 [64]. The computational fluid dynamics of the nutrient solution can be computed using Equations (4)-(8): where → u is the velocity vector, and the density and pressure are represented by ρ and p, respectively. S h , C p , = I, = τ and T are the source term, specific heat, identity matrix, stress tensor, and temperature.
µ, H, k t and → g represent the viscosity, enthalpy, thermal conductivity, and gravitational acceleration, respectively.
The flow patterns in fluid mechanics can be predicted by using Reynold's number (Re). It is used in simulations, as well as experimental or empirical estimations [65,66]. The Re is defined by Equation (9) as: where µ denotes the dynamic viscosity of the fluid (kg ms −1 ), D H represents the hydraulic diameter (m), v is the velocity of the fluid (m s −1 ), and ρ denotes the density of the fluid (kg m −3 ).

Hardware Setup for the Hydroponic Cultivation of Saffron
The setup designed for the cultivation of saffron consists of the hardware components already explained in Figure 4. After designing the circuit and joining the components, the best-quality corms, on the basis of their weight (>8 gm), were chosen. The chosen corms were treated with 0.2% tiabendazole and dried in shade for one day. After this, the corms were sown in the hydroponic system and were constantly monitored for their growth and the control of agronomical variables. The essential nutrients were supplied to the plant through the pump using the nutrient solution, which was continuously recycled [67,68]. The corms were in their very initial development phase, and the effect of the controlled environment on the yield, quality, and time taken to flower will be covered in future studies. The detailed step-by-step procedure of the designed the hardware system for cultivation is shown in Figure 7.

Hardware Setup for the Hydroponic Cultivation of Saffron
The setup designed for the cultivation of saffron consists of the hardware comp nents already explained in Figure 4. After designing the circuit and joining the comp nents, the best-quality corms, on the basis of their weight (>8 gm), were chosen. The ch sen corms were treated with 0.2% tiabendazole and dried in shade for one day. After th the corms were sown in the hydroponic system and were constantly monitored for th growth and the control of agronomical variables. The essential nutrients were supplied the plant through the pump using the nutrient solution, which was continuously recycl [67,68]. The corms were in their very initial development phase, and the effect of the co trolled environment on the yield, quality, and time taken to flower will be covered in ture studies. The detailed step-by-step procedure of the designed the hardware system cultivation is shown in Figure 7.

Analysis of the Research Problems
This section provides an analysis of the critical factors needed for the artificial cu vation of saffron, such as the criteria for selecting the sensors, the most commonly us sensors, and the application of sensors for different practices related to saffron cultivatio The analysis and reports are based on the existing RQs in Section 3: RQ1: What is the percentage increase in crops cultivated using artificial methods and t IoT?

Analysis of the Research Problems
This section provides an analysis of the critical factors needed for the artificial cultivation of saffron, such as the criteria for selecting the sensors, the most commonly used sensors, and the application of sensors for different practices related to saffron cultivation. The analysis and reports are based on the existing RQs in Section 3: RQ1: What is the percentage increase in crops cultivated using artificial methods and the IoT?
After studying the literature, it was observed that the major crops of the world, as per their production, are wheat, rice, corn, soyabean, and sugarcane [65,66]. Out of these crops, the percentage of the yield produced by using IoT and other technologies, based on the literature published from the year 2018 onwards, has increased in the case of different major crops and can be shown in the form of a graph, as shown in Figure 8. It has also been observed that the research carried out on saffron is limited to natural ecosystems, without realizing the economic potential of artificial saffron cultivation, and the publications on this topic are limited.
RQ2: What criteria are used to select sensors for soilless saffron cultivation? After studying the literature, it was observed that the major crops of the world, as per their production, are wheat, rice, corn, soyabean, and sugarcane [65,66]. Out of these crops, the percentage of the yield produced by using IoT and other technologies, based on the literature published from the year 2018 onwards, has increased in the case of different major crops and can be shown in the form of a graph, as shown in Figure 8. It has also been observed that the research carried out on saffron is limited to natural ecosystems, without realizing the economic potential of artificial saffron cultivation, and the publications on this topic are limited. The second motive for conducting this research is the challenge of selecting sensors out of a wide range based on their suitability to the environment. For this purpose, an indepth literature review was conducted. The selection of sensors depends on different factors, such as the requirements for the application, cost, error percentage, size, weight, etc. [44][45][46][47][48][49][50]. Out of all the different selection parameters discussed by researchers, the major ones identified are listed in Table 4, given below, with their descriptions. Table 4. Sensor Selection Criteria in Precision Agriculture.

Selection Parameters Description Resolution
It is the smallest measurable change in the values which can be detected.

Range
It includes all the values between the maximum and minimum. It depends on the application values which need to be sensed.

Precision
Closeness of sensor reading to the true value. It should always be high to ensure optimal results.

Cost
The sensor selection should be performed while keeping the cost in view with respect to the application for which the sensor is being used.

Error percentage Response time Dimensions (size and weight)
It is defined as the difference between the measured value and the true value. Ideally, it should always be the minimum. It is defined as the time lag between the input and output and should be low.
The selected sensors should always be compact in size and light in weight.

Calibration
The operation of the sensors should be easy and frequent in calibration.

Sensitivity
It is the ratio given by the change in the output to the change in the input and is preferably high. This is directly proportional to the cost. The second motive for conducting this research is the challenge of selecting sensors out of a wide range based on their suitability to the environment. For this purpose, an in-depth literature review was conducted. The selection of sensors depends on different factors, such as the requirements for the application, cost, error percentage, size, weight, etc. [44][45][46][47][48][49][50]. Out of all the different selection parameters discussed by researchers, the major ones identified are listed in Table 4, given below, with their descriptions. Table 4. Sensor Selection Criteria in Precision Agriculture.

Selection Parameters Description
Resolution It is the smallest measurable change in the values which can be detected.

Range
It includes all the values between the maximum and minimum. It depends on the application values which need to be sensed.

Precision
Closeness of sensor reading to the true value. It should always be high to ensure optimal results.

Cost
The sensor selection should be performed while keeping the cost in view with respect to the application for which the sensor is being used.

Error percentage Response time Dimensions (size and weight)
It is defined as the difference between the measured value and the true value. Ideally, it should always be the minimum. It is defined as the time lag between the input and output and should be low. The selected sensors should always be compact in size and light in weight.

Calibration
The operation of the sensors should be easy and frequent in calibration.

Sensitivity
It is the ratio given by the change in the output to the change in the input and is preferably high. This is directly proportional to the cost. Based on the above-described selection of the parameters, the different sensors widely used in PA were considered for the use case of saffron cultivation. To select a particular type of sensor, a detailed step-by-step comparison was followed: • First of all, the application and the environment in which the sensor was destined to be used and the range of the values which were intended to be sensed were defined. The range of the values was identified by studying various research articles related to the agronomical variables used for saffron cultivation [51][52][53][54][55][56].

•
The major variables to be controlled and monitored were found to be the temperature, humidity, pH, water flow, weight of the corm, and luminosity. The sensors available for each variable were compared on the basis of the selection parameters and suitable nutrients given in Table 3.
RQ3 What are the most frequently used sensors in IoT-based artificial saffron cultivation?
In addition to this, a few researchers have focused on the use of sensors for the control of agronomical variables, with most of them focusing on monitoring. Based on the literature survey [41][42][43], the top five most commonly used agricultural sensors can be represented as given in Figure 9. In Figure 9, it can clearly be seen that the sensors most frequently used in agriculture are given as: RQ4 What is the percentage use of sensors for different practices related to saffron cultivation? Based on the above-described selection of the parameters, the different sensors widely used in PA were considered for the use case of saffron cultivation. To select a particular type of sensor, a detailed step-by-step comparison was followed:


First of all, the application and the environment in which the sensor was destined to be used and the range of the values which were intended to be sensed were defined. The range of the values was identified by studying various research articles related to the agronomical variables used for saffron cultivation [51][52][53][54][55][56].  The major variables to be controlled and monitored were found to be the temperature, humidity, pH, water flow, weight of the corm, and luminosity. The sensors available for each variable were compared on the basis of the selection parameters and suitable nutrients given in Table 3.
RQ3 What are the most frequently used sensors in IoT-based artificial saffron cultivation?
In addition to this, a few researchers have focused on the use of sensors for the control of agronomical variables, with most of them focusing on monitoring. Based on the literature survey [41][42][43], the top five most commonly used agricultural sensors can be represented as given in Figure 9. In Figure 9, it can clearly be seen that the sensors most frequently used in agriculture are given as: RQ4 What is the percentage use of sensors for different practices related to saffron cultivation?
The major practices related to saffron cultivation are corm sowing, flowering, harvesting, and drying and packaging [51][52][53][54]. The percentage-wise distribution of the use of IoT in all these practices can be given as shown in Figure 10. The maximum use values of the sensors and IoT were found in papers related to cultivation and flowering, followed by corm sowing and drying, with only 10% of the articles related to harvesting, which is the most difficult and laborious phase of saffron cultivation. The major practices related to saffron cultivation are corm sowing, flowering, harvesting, and drying and packaging [51][52][53][54]. The percentage-wise distribution of the use of IoT in all these practices can be given as shown in Figure 10. The maximum use values of the sensors and IoT were found in papers related to cultivation and flowering, followed by corm sowing and drying, with only 10% of the articles related to harvesting, which is the most difficult and laborious phase of saffron cultivation.
RQ5 What is the production increase in major crops of world and saffron after the use of IoT?  RQ5 What is the production increase in major crops of world and saffron after the use of IoT?
As per the reports and different research articles, the production of crops such as rice, wheat, and maize has greatly increased through the use of IoT and smart farming. The production of rice using IoT was 480 million metric tons in 2015, which increased to 510 million metric tons in 2021.The impacts of the IoT and sensors on corn cultivation have increased its production significantly, with 1200 million metric tons in 2021. However, due to the practice of area-specific cultivation and the limited research on saffron and the use of IoT in saffron cultivation, the IoT has only minimally benefited saffron production, increasing the production from 279 million metric tons to 450 million metric tons, primarily in Iran [61,62]. From the data given in Figure 11, we can see that there is a low production of saffron as compared to other crops in all the years. Hence, there is great scope for the use of new technologies such as the IoT to provide greater economic benefits. As per the reports and different research articles, the production of crops such as rice, wheat, and maize has greatly increased through the use of IoT and smart farming. The production of rice using IoT was 480 million metric tons in 2015, which increased to 510 million metric tons in 2021.The impacts of the IoT and sensors on corn cultivation have increased its production significantly, with 1200 million metric tons in 2021. However, due to the practice of area-specific cultivation and the limited research on saffron and the use of IoT in saffron cultivation, the IoT has only minimally benefited saffron production, increasing the production from 279 million metric tons to 450 million metric tons, primarily in Iran [61,62]. From the data given in Figure 11, we can see that there is a low production of saffron as compared to other crops in all the years. Hence, there is great scope for the use of new technologies such as the IoT to provide greater economic benefits.  RQ5 What is the production increase in major crops of world and saffron after the use of IoT?
As per the reports and different research articles, the production of crops such as rice, wheat, and maize has greatly increased through the use of IoT and smart farming. The production of rice using IoT was 480 million metric tons in 2015, which increased to 510 million metric tons in 2021.The impacts of the IoT and sensors on corn cultivation have increased its production significantly, with 1200 million metric tons in 2021. However, due to the practice of area-specific cultivation and the limited research on saffron and the use of IoT in saffron cultivation, the IoT has only minimally benefited saffron production, increasing the production from 279 million metric tons to 450 million metric tons, primarily in Iran [61,62]. From the data given in Figure 11, we can see that there is a low production of saffron as compared to other crops in all the years. Hence, there is great scope for the use of new technologies such as the IoT to provide greater economic benefits.

Results from Hardware Setup
One of the most important growth models for the simulation of the yield and biomass of crops growing in hydroponic systems is AquaCrop. The reason for considering this model is that only a few studies have been conducted on the parametrization of saffron crops. AquaCrop simulates the yield response to water in the case of herbaceous crops and is particularly well-suited to conditions where water is a key limiting factor in crop production. The long growing cycle of the crop makes the simulation of its growth parameters difficult [69]. The dataset considered in this study is based on the values obtained from the sensors of the hardware model. The results obtained indicated that the yield and biomass can be considerably improved in a hydroponic medium, with a reduction in the flowering time, better water productivity, and less time required for cultivation. The important agronomical variables affecting the growth, which are controlled and monitored through the hardware model, are used as inputs to the AquaCrop model. Figure 12 shows a screenshot of the input parameters considered for AquaCrop.
One of the most important growth models for the simulation of the yield and biomass of crops growing in hydroponic systems is AquaCrop. The reason for considering this model is that only a few studies have been conducted on the parametrization of saffron crops. AquaCrop simulates the yield response to water in the case of herbaceous crops and is particularly well-suited to conditions where water is a key limiting factor in crop production. The long growing cycle of the crop makes the simulation of its growth parameters difficult [69]. The dataset considered in this study is based on the values obtained from the sensors of the hardware model. The results obtained indicated that the yield and biomass can be considerably improved in a hydroponic medium, with a reduction in the flowering time, better water productivity, and less time required for cultivation. The important agronomical variables affecting the growth, which are controlled and monitored through the hardware model, are used as inputs to the AquaCrop model. Figure 12 shows a screenshot of the input parameters considered for AquaCrop. The results of the simulation are shown in Figures 13 and 14. As shown in Figure 12, the timeline for the cultivation of the saffron is considerably reduced in comparison to its natural cultivation, which takes around 280 days for its completion [70]. The maximum canopy cover, which gives the percentage of the maximum ground area covered by native vegetation, is predicted to be achieved after only 35 days of sowing. The flowering also occurs early in this case. The results of the simulation are shown in Figures 13 and 14. As shown in Figure 12, the timeline for the cultivation of the saffron is considerably reduced in comparison to its natural cultivation, which takes around 280 days for its completion [70]. The maximum canopy cover, which gives the percentage of the maximum ground area covered by native vegetation, is predicted to be achieved after only 35 days of sowing. The flowering also occurs early in this case.    The water productivity is used to evaluate the performance. It refers to the biomass produced per meter of water lost in evapotranspiration and should be as high as possible. It measures the performance and efficiency of water-based models. The water productivity obtained in the case of the hydroponic model was 2.27 kg/m 3 , as compared to 1.9 kg/m 3 . The biomass value, which gives the living tissue mass expressed in mass per unit area, for the hydroponic medium was obtained as 11.780 ton/ha, as compared to 11 ton/ha in the case of natural cultivation. The value of the harvest index, which gives the total weight of the stigmas divided by the total above-ground biomass, was obtained as 50% [71]. Using the biomass and harvest index, the yield can be calculated using Equation (10) as: The value of the yield obtained through hydroponic cultivation was 7.8 kg/ha, and it was 4.7 kg/ha in the case of natural cultivation [71,72] as shown in Figure 15. The water productivity is used to evaluate the performance. It refers to the biomass produced per meter of water lost in evapotranspiration and should be as high as possible. It measures the performance and efficiency of water-based models. The water productivity obtained in the case of the hydroponic model was 2.27 kg/m 3 , as compared to 1.9 kg/m 3 . The biomass value, which gives the living tissue mass expressed in mass per unit area, for the hydroponic medium was obtained as 11.780 ton/ha, as compared to 11 ton/ha in the case of natural cultivation. The value of the harvest index, which gives the total weight of the stigmas divided by the total above-ground biomass, was obtained as 50% [71]. Using the biomass and harvest index, the yield can be calculated using Equation (10) as: The value of the yield obtained through hydroponic cultivation was 7.8 kg/ha, and it was 4.7 kg/ha in the case of natural cultivation [71,72] as shown in Figure 15.

Conclusions and Future Work
The world population is increasing every year. There is a need for the development of artificial cultivation methods for agriculture, as the land under agriculture is also declining due to the increase in populations and urbanization. Artificial cultivation methods such as hydroponics can realize the full potential by using the internet of things, using sensors as the backbone. Due to the increase in the production of sensors, there is a great need to develop a standard sensor selection procedure. The crux of the problem, based on

Conclusions and Future Work
The world population is increasing every year. There is a need for the development of artificial cultivation methods for agriculture, as the land under agriculture is also declining due to the increase in populations and urbanization. Artificial cultivation methods such as hydroponics can realize the full potential by using the internet of things, using sensors as the backbone. Due to the increase in the production of sensors, there is a great need to develop a standard sensor selection procedure. The crux of the problem, based on the literature studied, is that most research articles on PA are related to major crops of the world, such as corn, soyabean, and wheat. It was also seen that the sensors used in PA focus mostly on five parameters, which include the temperature, humidity, water flow, and light. It was also seen that the sensors used in PA are mostly used in natural media for the monitoring of values. The important factors to be considered in sensor selection for a particular application should be based on the nature of the application, accuracy, response time, and range of values to be monitored and controlled. Following the literature study, a system model for the artificial cultivation of saffron was proposed. As saffron is the most expensive spice in the world, it offers great economic benefits and has a vast array of applications. The number of research articles dedicated to artificial saffron cultivation and the sensors used is very small, which makes this an interesting topic of research. The information related to the sensors and the selection procedure for saffron cultivation in hydroponic media was also discussed.
The hardware setup and the framework for saffron cultivation using hydroponics were proposed. The important factors in a hydroponic system for saffron cultivation, such as the flow rate and electroconductivity, were explained using equations. The sensor selection procedure followed and the suitable sensors on the basis of factors such as the sampling rate, cost, precision, and operating range for hydroponically growing saffron were also discussed. The hardware model was validated using the AquaCrop model to predict output parameters such as the yield, biomass, water productivity, and harvest index. The values obtained indicate better results as compared to those of natural cultivation, which is time-consuming.
The future scope of this study will involve a comparison of the predicted results obtained using the AquaCrop model with the actual results. The saffron corms already sown in the automated hydroponic setup are being monitored and controlled in different stages. In future work, a comparison of the results with the present state of the art will be considered in light of other important parameters for sustainable cultivation, such as carbon emissions. The accuracy of the data received through the cloud using an app will also be studied within the future scope of this study. We will explore parameters such as the stigma size and quality, number of flowers per plant, and cost optimization with respect to the existing state of the art and naturally growing saffron.  Data Availability Statement: Data will be made available on request.