The clustering approach can improve wireless sensor network parameters such as lifetime enhancement, load balancing, reliable communication, and fault tolerance. The Cluster head in the cluster is responsible for reliable data transmission between node and sink or base station. Selecting suitable cluster heads and establishing an optimal path for data transmission is the main objective of this research work. Fuzzy-based clustering based on cluster head selection, optimized routing using particle swarm optimization (PSO), adaptive whale optimization algorithm (AWOA) are presented in this research work. Fuzzy logic considers the parameters like the distance between base station to node, node centrality, node degree, and residual energy for cluster head selection. The optimization model obtains an optimized node for routing from the selected cluster heads. In terms of network lifetime, delay, energy consumption, packet delivery ratio, and energy efficiency, simulation analysis of the proposed model is compared to conventional routing algorithms such as bacteria foraging optimization (BFO), Tree-based data gathering (TBDG) algorithm, Immune inspired routing (IIR), Low-Energy Adaptive Clustering Hierarchy (LEACH), and Hybrid Energy-Efficient Distributed (HEED) protocol. The results demonstrate that the proposed approach outperforms existing approaches in terms of network lifetime and energy efficiency.