In the ever-evolving landscape of Wireless Sensor Networks (WSNs), the demand for cutting-edge algorithms has never been more critical. This paper proposes an algorithm, HarborSync, to improve stability, energy efficiency, durability, and congestion control in WSN. While selecting cluster heads and backup nodes, HarborSync applies the Optimised Stable Clustering Algorithm (OSCA) and the Weighted Clustering Algorithm (WCA). This fresh method puts the groundwork for better performance by acquainting techniques to intentionally postpone changes in cluster heads and computing priorities. Using the innovative Cluster-based Aggregation and Congestion Control (CACC) features, HarborSync provides enhanced routing, adaptive reconfiguration, efficient aggregation techniques, and dynamic congestion monitoring. Among HarborSync's strengths, stability bears out with a 90% rating, surpassing those of LEACH (78%), LEACH-C (82%), TEEN (88%), and PEGASIS (76%). When it comes to durability, HarborSync scores 88% better than LEACH (75%), LEACH-C (80%), TEEN (85%), and PEGASIS (72%). The HarborSync score is 3.85% for congestion control compared to LEACH and LEACH-C, managing 5.22%, TEEN accomplishing 4.98%, and PEGASIS with 7.32%. Regarding adaptability, HarborSync showcases its versatility, earning an 85% rating, surpassing LEACH (72%), competes with LEACH-C (78%), equals TEEN (90%), and outperforms PEGASIS (68%). In the critical realm of packet loss management, HarborSync demonstrates efficiency with a reduced rate of 6.179%. Therefore, it outperforms LEACH (7.811%), LEACH-C (6.897%), TEEN (4.953%), and PEGASIS (7.973%).