Wireless sensor networks (WSN) are infrastructure-less and fully distributed systems of self-configurable and self-organized nodes that wish to share the IoT devices’ data over the air. WSN consists of heterogeneous/homogeneous sensors dispersed in a particular area to monitor phenomena, such as volcanoes, pressure, sound, temperature, and pollution, then transfer their data to a central location for analysis and decision-making. The deployment of WSNs is often used in difficult places, such as disaster areas, battlefields, conflict zones, and volcanic zones, which require efficient data collection. However, WSNs face many challenges, such as latency, multitasks, and data quality. This paper proposes an efficient solution for multiple data collection tasks exploiting mobile edge computing (MEC) technique-enabled WSN in war field and disaster areas. Firstly, we integrate WSN and MEC to produce a novel data collection framework (WSN). Secondly, we modelled the data collection process, including multiple sensors and tasks. Thirdly, determine the best way to deploy sensors in the targeted area (e.g., military areas, isolated areas, and areas infested with terrorists) to cover the whole destination area, based on set values for data quality. Finally, find an appropriate technique for routing by choosing the routing protocol to improve their capabilities performance and decrease the energy consumption to increase the life of the WSN. Furthermore, the security of WSN is one of the key parameters, especially in the routing protocol, since it is critical to ensure the security of transmitted data and how it is transmitted securely to mitigate the attacks. The framework which works as a simulation tool shows a good result and has been proven the efficient interaction between the MEC and WSN. We compare the results with traditional methods, which proved to outperform them.