The document presents an energy-efficient hybrid k-means algorithm designed to optimize the routing in clustered wireless sensor networks (WSNs), combining k-means clustering with the LEACH protocol. The proposed approach aims to minimize energy consumption during data transmission, thereby extending the network's lifetime, as demonstrated through simulations using MATLAB. Results indicate that this hybrid algorithm significantly outperforms the LEACH protocol in terms of energy efficiency and longevity of the sensor network.