Wireless Sensor Networks (WSNs) progressively participate in many applications. Green communication is the actual application of selecting the energy-efficient method for exchanging the information, networking technologies, and services, minimizing resources used whenever possible in all communications present in WSN. The major issues in WSN are the communication overhead and energy efficiency of each individual sensor node. It should be made to ensure that the valid data is being shared to avoid any remarkable degradation in system function because of faulty or inexact information. It will create confidentiality, a more secured network in which all devices are recognized and no data drawn from an unknown device. To have a protected WSN that is able to withstand malicious trust attacks, contribute an efficient data aggregation technique (EDAT) to enhance the packet delivery ratio in the network while reducing the time to segregate any malicious behavior focusing the trust in the entire network. The detailed evaluation acquired from the theoretical interpretation and the experimental simulations exhibit that the technique can bring down the communication overhead, energy consumption of the network and protect the information from reaching a compromise when compared with the existing schemes.