The document presents the RGRCC algorithm for congestion control in wireless sensor networks (WSNs), which addresses the challenges of data loss and delays due to high congestion during data transmission. It focuses on efficiently identifying node congestion through queue length metrics and dynamically rerouting data paths to enhance communication scalability. Simulation results indicate that the proposed algorithm significantly outperforms conventional methods in improving congestion management and network performance.