This paper investigates node localization methods in wireless sensor networks (WSNs), proposing novel algorithms to address high localization errors observed in traditional methods. A new algorithm for localization and route planning is introduced, along with a genetic algorithm to enhance route efficiency and network lifetime. Simulation results demonstrate that the proposed methods outperform conventional algorithms in terms of localization accuracy and energy efficiency.