Wireless sensor networks consist of a large number of nodes with constrained energy supply. Energy efficiency is hot and challenging issue in wireless sensor networks. Existing studies have shown that clustering is one of the efficient techniques to improve energy efficiency. An easy-to-implement and flexible method for even clustering and cluster head selection is beneficial to optimize network stability and energy efficiency. In this study, a sector-based lightweight and flexible clustering algorithm is developed to reduce node energy dissipation and optimize energy efficiency. Our proposal divides the area into virtual sectors. In the meanwhile, an even sector cluster is created using the sector decomposition approach. Based on the total communication distance, residual energy, and local node density, each node in the cluster calculates its own priority. The node with the highest priority is selected as the cluster head. Our proposal is compared with TSC,MH-TSC,SEECP,DREEP and LEACH. Experimental results show that the proposed algorithm outperforms these algorithms in terms of network stability and network lifetime.INDEX TERMS wireless sensor networks, sectors, energy efficiency, clustering.