# Blockchain-Based Cloud-Enabled Security Monitoring Using Internet of Things in Smart Agriculture
## 5 Proposed Approach
A Web3 frontend application is implemented to review and alert the farmers when security events are detected. Advantages of our proposed approach: Our solution inherits the advantage of secured data storage using blockchain. It includes only the authorized farming owners who can see the smart-farming records. The cloud-based data storage poses the security risks of data breaches due to misconfigured access controls. The blockchain allows secured storage of records and no storage maintenance cost. Our solution is scalable in the cloud and offer solutions to various security use cases in smart agriculture  
The immutability of the blockchain transaction alert data can be used as evidence for legal proceedings, insurance claims for protecting the farmer's agriculture assets and property, and backing up the security investigation data without data corruption. For instance, natural disasters may have a severe impact on agriculture fields. Evidence of when, what, where, and how can be captured as blockchain transaction data and used for insurance claims. The farms cannot deny the ownership of the transaction once the transaction is added to the blockchain. This property may be used to identify malintent farmer activity and maintain transparency. Some of the smart-agriculture use cases of the proposed approach are discussed below. Sensor health status: The sensors should constantly monitor the physical conditions in the agricultural land and farms and send this data to the farmers or crop owners to effectively manage the farms for high yield, low loss, and better productivity. The sensors/actuators must work continuously to obtain updates regularly. Sensors are targeted with passive and active attacks. Therefore, the health status monitoring of these device sensors is essential and continuously monitored. The farmer should be notified within a  
Figure 2: Blockchain cloud-based smart-agriculture application. mobile application whenever the device's health status is off. Then, the farmer may find the root cause and fix the issue. Sensor data anomalies: Sensor data irregularities can be flagged for attention and to look for anomalies. A threshold can be set up to trigger the alert and monitor the smart-agriculture applications. For instance, the temperature of the farming storage unit is constantly monitored to store commodities safely. A temperature sensor is installed on the storage unit and monitors the storage-unit temperature. Whenever the temperature exceeds the threshold temperature, our blockchain-based monitoring solution sends an alert to the storage unit owner. Similarly, the image sensor installed near the storage unit is used to identify moving objects. An image-processing technique was applied to detect unauthorized access to the storage unit facility. The cloud resources incorporated in our solution can process the images and produce the output. Community farming blockchain: The crop productivity or quality impact on any single farm may gradually affect other farms in the community or nearby farms in the surrounding area. The effect can be due to the infection of bugs, severe weather disturbing the crop's life cycle or more. Communication of this information to the community farmers may save their crops from infection and stop the infection from spreading. Therefore, the blockchain-based community can use this as a farm blockchain for sharing the latest updates among the farmers and keep connected to be aware of what is happening on the surrounding people's farms for awareness. For instance, a burglar with unauthorized farmland storage access can be reported to the farmers around the premises using the proposed blockchain-based application. The number of applications are numerous using the smart-farm community blockchain.