Technology must be able to support vast networks of consumers in order to be economically feasible. One issue is that addressing and routing in ad hoc networks do not scale up as easily as they do on the Internet. Clustering is a method for generating and managing hierarchical addresses in ad hoc networks. The Grid-based Weighted Clustering Method, or "GWCM," is proposed in this paper for use in wireless ad-hoc networks. This approach considers the number of nodes that a cluster-head can support, as well as the signal strength, mobility, and connectivity of each node. The proposed GWCM was introduced using the network simulation (NS2) environment and the AODV routing protocol to incorporate the proposed algorithm. As nodes relay high complexity, the findings show that the proposed GWCM increases network node flexibility and performance. Additionally, compared developed method to old approach of Energy-Efficient Clustering and DRL-Based Sleep Scheduling and found acceptable performance of GWCM using average comparison of End to end network delay, remain energy and packet delivery ratio.