Wireless Sensor Networks (WSNs) are widely used in most applications of the Internet of Things (IoT) for efficiently sensing the harsh environments, collecting important data, and sending them to the base station for further analysis. Therefore, the research community worldwide is actively participating in addressing and solving the challenges associated with WSNs. The common issue that is being studied and well-thought-out are how to increase the network's life span by resolving node failure problem and efficient energy utilization. This paper introduces a Cluster-based Node Recovery (CNR) connectivity restoration mechanism based on the concept of clustering. The proposed technique utilizes a distributed cluster-based approach to identify the failed nodes, while Cluster Heads (CHs) play a significant role in the restoration of connectivity. The simulation results show that the proposed technique efficiently addresses node failure and restores the connectivity by moving fewer nodes than other existing connectivity restoration mechanisms.