# AgriSecure: A Fog Computing-Based Security Framework for Agriculture 4.0 via Blockchain
## 9 Conclusions  
Modernization of agricultural methods is required to increase productivity levels while conserving nature. Precision agriculture could improve farming works by controlling actuators more efficiently, enhancing the use of resources, increasing revenues, and minimizing expenses. In order to accomplish this objective, IoT technologies have to incorporate more computing performance, such as edge computing, big data handling, automated resources, and safety features. As limited devices sense a huge amount of data and forward it to the gateway or the cloud, security requires special attention. The data must be secured throughout the agricultural system, from diagnosis to risks and inventory.  
Even though numerous security issues may affect farming production, they still include a few security measures. This could be because these technologies were in their initial phases of development. For most of the points, only computing resources are incorporated, and that has limited computation power. As a result, security mechanisms are very rare in the current list of requirement specifications. Reaching a higher level of agricultural development, on the other hand, necessitates technologies with security features that provide enough quality and validity to incorporate these technologies on a high level. As precision agriculture introduces new complexities, it also opens up new future directions in security and other areas.  
In this study, we suggested a security framework for the agricultural internet of things that integrates blockchain technology, fog computing, and software-defined networking. The suggested architecture avoids the requirement for simulation-based work with both private and public blockchain for communication between SDN controllers and IoT devices. Here, for IoT connectivity, each SDN controller is linked to a blockchain. SDN controllers are interconnected by a network's topology. One of the key objectives of the proposed architecture is to enhance communication security for IoT devices. For IoT devices with limited resources, distributed trust-based verification makes blockchain even more useful. With a focus on fixing security and data reliability issues in a distributed controller context. Additionally, we want to increase the accuracy of our system using machine learning methods.  
It might be significant to add an intrusion detection system utilizing various deep learning algorithms in future work to prevent the insertion of fake Sensor data in the intelligent agricultural field.  
Conceptualization, S.P., S.D. and S.R.; methodology, S.P., M.A. ([PERSON]), S.D. and P.P.M.; software, S.P., S.R., M.A. ([PERSON]), P.P.M. and H.A.; validation, M.A. ([PERSON]), S.R. and H.A.; formal analysis, S.P., S.D., M.A. ([PERSON]) and P.P.M.; writing--original draft preparation, S.P., S.D. and P.P.M.; writing--review and editing, M.A. ([PERSON]), S.R. and H.A. All authors have read and agreed to the published version of the manuscript.  
The author would like to thank Deanship of Scientific Research at Majmaah University for supporting this work under Project Number No. R-2023-67.  
Not applicable.  
Data Availability Statement: Research data are not shared.  
Conflicts of Interest: The authors declare that they have no conflict of interest.