**3. Materials and methods**

In recent times the concept of mobile agent (MA) was applied by researchers in wireless sensor networks (WSN) to reduce the energy consumption and improve data collection. Mobile agent paradigm has been adopted by researchers as an alternative to traditional client-server paradigm. Data aggregation in WSN is an active research area due to its importance in solving the main drawbacks of using WSNs. This research has the following contributions.

