The document presents a fuzzy logic approach to enhance the Stable Election Protocol (SEP) for clustered heterogeneous wireless sensor networks, aimed at addressing energy consumption and stability issues in such networks. The proposed SEP-FL method improves the stability period and reduces instability by optimizing the election of cluster heads based on residual energy and distance to the base station. Simulations demonstrate that SEP-FL significantly outperforms existing protocols in extending the network's lifetime and energy efficiency.