The energy consumption of the internet of things (IoT) routing protocol can affect the network life span. The high volume of data produced by IoT will result in transmission collision, security, and energy dissipation due to data redundancy because tiny sensors are usually hard to recharge after they are deployed. Generally, to save energy, data aggregation reduces data redundancy at each node by turning some nodes into sleep and some into wake-up mode. The main work is that to group the nodes with high data similarity using the fuzzy matrix. Then, data received from the member nodes at CH are analyzed using a fuzzy similarity matrix for clustering. In the next step, after clustering, some nodes are chosen from all groups as redundant nodes. The sleep scheduling mechanism is then applied to reduce data redundancy, network traffic jamming, and transmission cost. We proposed an energy-efficient data aggregation mechanism (EEDAM) secured by blockchain. The proposed system uses a data aggregation mechanism at the cluster level to save energy. Edge computing is used to provide on-demand trusted services to IoT without minimum delay. Blockchain is integrated inside a cloud server, so the edge is validated by the blockchain to provide secure services to IoT. Finally, we performed simulations to calculate the performance of the proposed mechanism and compared it with the conventional energy-efficient algorithms. The simulation results show that the proposed structural design can successfully reduce the amount of data, provide proper security to IoT, and extend the wireless sensor network (WSN).