Body Area Networks (BODYNETs) or Wireless Body Area Networks (WBAN), being an important type of ad-hoc network, plays a vital role in multimedia, safety, and traffic management applications. In BODYNETs, rapid topology changes occur due to high node mobility, which affects the scalability of the network. Node clustering is one mechanism among many others, which is used to overcome this issue in BODYNETs. There are many clustering algorithms used in this domain to overcome this issue. However, these algorithms generate a large number of Cluster Heads (CHs), which results in scarce resource utilization and degraded performance. In this research, an efficient clustering technique is proposed to handle these problems. The transmission range of BODYNET nodes is dynamically tuned accordingly as per their operational requirements. By optimizing the transmission range, the packet loss ratio is minimized, and link quality is improved, which leads to reduced energy consumption. To select optimal CHs the Whale Optimization Algorithm (WOA) is used based on their fitness, which enhances the network performance by reducing routing overhead. Our proposed scheme outclasses the existing state-of-the-art techniques, e.g., Ant Colony Optimization (ACO), Gray Wolf Optimization (GWO), and Dragonfly Optimization Algorithm (DFA) in terms of energy consumption and cluster building time.