# IoT-Enabled Precision Agriculture: Developing an Ecosystem for Optimized Crop Management
## 7 Discussion  
The proposed framework for integrating IoT systems in precision agriculture was evaluated in two different scenarios: a fixed IoT application scenario in olive tree farms and a mobile IoT application scenario in horse stables. The results of the experiments conducted in both scenarios were analyzed to evaluate the overall performance of the proposed framework.  
In the fixed scenario, the results highlighted the impact of node density and area coverage on the overall system performance. The average end-to-end packet delivery ratio (PDR) between the nodes and the sink node was calculated over five runs for a 4-h duration for each run, as shown in Figure 7. The results indicate that as the node density increases, the PDR also increases, indicating that a higher node density results in better network performance. Similarly, as the area coverage increases, the PDR also increases, indicating that a larger coverage area results in better network performance.  
In the mobile scenario, the results highlighted the impact of mobility on performance. The mobile nodes were simulated using the random waypoint model (RWP), which distributes the nodes randomly within predefined simulation areas after the start of the simulation. The simulation setting for the speed of the mobile nodes was uniformly selected between 1 and 2 m/s. The hop count metric was used to evaluate the reliability of the network in delivering data packets from the source to the destination. The results indicate that as the mobility of the nodes increases, the hop count also increases, indicating that a higher mobility results in a higher hop count and a lower PDR.  
The simulation results showed that the proposed framework is suitable for both fixed and mobile scenarios, providing efficient communication performance and low latency. The results also highlighted the impact of node density and area coverage on the overall system performance in the fixed scenario, as well as the impact of mobility on the performance in the mobile scenario. The simulation results are a promising solution for precision agriculture applications and can be further enhanced by incorporating more advanced technologies and techniques to improve its performance and scalability.  
It is important to note that using simulation as a validation method for the proposed framework in precision agriculture applications offers several advantages. One of the key advantages is the ability to realistically compare the networking performance indices of both fixed and mobile nodes using the same simulation settings. By combining these two scenarios, the simulation allows us to capture the effect of mobility on both applications, and thus provide a comprehensive understanding of the system's behavior in different scenarios. Moreover, using a software simulator such as COOJA enables us to test the system in a controlled environment, which can minimize the cost and complexity of implementing the system in a real-world setting. Furthermore, the simulation results can be easily replicated and verified, providing a high level of confidence in the validity of the results.