The Internet of Things (IoT) has significantly impacted human life, enhancing quality of life and transforming various commercial sectors. The sensor nodes in the IoT are interconnected to facilitate the passage of data to the sink node over the network. Due to the constraints of battery power, energy in the nodes is preserved through the utilization of clustering techniques. Choosing a Cluster Head (CH) is crucial for prolonging the network's lifespan and increasing its throughput during the clustering process. Numerous optimization techniques have been developed to select the best Cluster Head (CH) to enhance energy efficiency in network nodes. Therefore, using incorrect CH selection methods leads to longer convergence times and faster depletion of sensor batteries. This research proposes a method that incorporates a CH selection strategy using the Jaya optimization method. The proposed methodology is evaluated against existing algorithms in terms of network longevity and energy efficiency. The simulation results indicate that the Jaya optimization algorithm-based CH selection scheme (Jaya-EEC) is much more effective in terms of network longevity compared to LEACH, LEACH-E, and PSO-C. Specifically, Jaya-EEC outperforms LEACH by 72%, LEACH-E by 64%, and PSO-C by 60%.