The Internet of Things (IoT) comprises many nodes dispersed around a particular target region, and it has lately been applied in a variety of sectors such as smart cities, farming, climatology, smart metering, waste treatment, and others. Even though the IoT has tremendous potential, some difficulties must be addressed. When building the clustering and routing protocol for huge-scale IoT networks, uniform energy usage and optimization are two significant concerns. Clustering and routing are well-known NP-hard optimization challenges applied to the IoT. The ease with which chicken can be implemented has garnered much interest compared to other population-based metaheuristic algorithms in solving optimization problems in the IoT. Aiming to reduce and improve node energy consumption in the IoT network by choosing the most suitable cluster head, the current effort seeks to extend the life of a network by selecting the most appropriate cluster head. A new cost function for homogenous dispersion of cluster heads was proposed in this research, and a good balance among exploration and exploitation search skills to create a node clustering protocol based on chicken search. This procedure is a big step forward from previous state-of-the-art protocols. The number of packets received, the total power consumption, the number of active nodes, and the latency of the suggested integrated clustered routing protocol are all used to evaluate the protocol's overall performance. The proposed strategy has been demonstrated to improve power consumption by at least 16 percent.