## 6 Conclusions  
We work in the broader field, the Internet of Things (IoT); in this case, we present blockchain technology for the security of WSNs. We talked about the wireless sensor networks (WSNs); in this network, we chose a cluster with a Cluster Head Base Station and Nodes. We also discussed the LEACH protocol, which is used for the energy efficiency of the network, and some drawbacks of the LEACH protocol. As everyone knows, blockchain is an emerging technology for the security of every network in the Internet of Things, e.g., smart home, smart cities, healthcare systems, agriculture, food packaging, structural monitoring, remediation of groundwater, accident avoidance, wildlife monitoring, and home automation system.  
To link a blockchain, cryptography processing and public key decryption are needed. Additionally, in order to transmit data when constructing a new blockchain, the link's earlier and later sequences must be confirmed. Therefore, various problems must be resolved in order to accomplish immediate data updating and storage.  
The hash function and encryption key computation are necessary for the suggested blockchain-based method, and they cannot be avoided. However, the efficiency of data transport decreases as the amount of data increases since more calculations take longer to complete. Large-scale calculations will therefore lengthen the data processing time.  
Our team is working to address the aforementioned issues using techniques like the blockchains' reset mechanism, which will always update data transmission to the most recent state. The application of a system control mechanism and a streamlined hash function computation procedure is another technique that could be helpful. Additionally, symmetric encryption will replace asymmetric encryption to streamline blockchain security.  
Several advantages will result from integrating blockchain technology into numerous information applications. Blockchain technology effectively reduces the danger of data tampering when the data are transmitted by using a decentralized and universal consensus process to maintain the integrity of the data. The blockchain-based ledger that was first utilized in banking can be compared to the sensory database of the WSN. Based on blockchain technology, each block contains an unforgeable timestamp and a more restricted record database.  
Figure 15: Various platforms in which blockchain is being used.  
As a result, we assumed that blockchain is more secure than other security techniques. According to the result analysis mentioned in Chapter 4, the reliability and the rate of data tampering with blockchain are low, which means there is a lower percentage of malicious attacks.  
Conceptualization, A.R. and S.A. ([PERSON]); methodology, A.R. and M.F.; software, M.W.I.; validation, S.A. ([PERSON]), M.U.A. and M.W.I.; formal analysis, M.U.A. and M.W.I.; investigation, S.A. ([PERSON]); resources, K.A.A.; data curation, A.R.; writing--original draft preparation, A.R. and S.A. ([PERSON]); supervision, M.F.; project administration, M.U.A.; funding acquisition, K.A.A. All authors have read and agreed to the published version of the manuscript.  
This research was funded by Deanship of Scientific Research at Umm Al-Qura University grant number 22 UQU4310108 DSR03.  
Not applicable.  
All data used in research is mentioned in the paper.  
The authors would like to thank the Deanship of Scientific Research at Umm Al-Qura University for supporting this work by Grant Code: (22 UQU4310108 DSR03).  
The authors declare no conflict of interest.