The document presents an improved routing protocol scheme for wireless sensor networks (WSN) using the εfcm algorithm integrated with the Stable Election Protocol (SEP), enhancing energy efficiency and network stability. Simulation results demonstrate that the proposed SEP-εfcm outperforms traditional SEP in terms of the number of live nodes and remaining energy over time. The research focuses on addressing limitations in current heterogeneous routing protocols by optimizing cluster head selection, ultimately extending the network's lifespan.