This paper proposes a range-based data gathering algorithm called Intersection Point of Communication Ranges (IPCR) for improving data collection latency and network throughput in wireless sensor networks (WSNs) using a mobile sink. The IPCR algorithm aims to optimize the mobile sink's trajectory, outperforming existing methods like the connectivity-based data collection algorithm in simulations. The study emphasizes the efficiency of the IPCR algorithm while addressing challenges like energy consumption and data collection latency associated with WSNs.