Network connectivity is the fundamental issue for ensuring the longevity of the networks in underground wireless sensor networks. Other important factors are consider in the WSN is minimum path count, energy usage, and packet delivery ratio. There are numerous approaches that might be used to extend the life of UWSN, however sustaining the energy level of network in underground locations in soil is still a challenge. It is projected that the Energy Effective Heterogeneous Grouping Ideal Transmission System with Fuzzy Identification (EEHG-ITSFI) technique will significantly lower the amount of energy used to transport data from node to bottom station and will increase the network of subterranean devices' useful life. Using EEHC-OTSFI, which randomly chooses a cluster head from the collection of clusters, the sensors are grouped into clusters. A fuzzy identification technique is used to focus this connectivity, which is seen as a QoS indication. The network's packet delivery is sped up and delayed less thanks to fuzzy identification technology. The ability to combine different variables into a single indicator, which demonstrates creative presentation for the growth of routing performance in WSNs, is the key benefit.The suggested methodology maximises lifetime in heterogeneous Underground Wireless Sensor Networks (UWSN) while lowering energy consumption by 25–30%, average hop count by 38–42%, and packet latency by up to 40–44%.