There is a rising need for sensors under an IoT network to identify and monitor the environment as more IoT devices and services are made accessible for use. This movement presents challenges such as the proliferation of data and the scarcity of energy. This research presents a strategy for enhancing the service provision capabilities of WSN-aided IoT applications by combining mobile edge computation with wireless signal and control transmission. In order to reduce overall system energy consumption while maintaining data transmission rate and power needs, a new optimization problem integrating power allocation, CPU frequency, offloading weight factor, and energy harvesting is devised. The non-convex nature of the problem necessitates the development of a novel ideal solution group iterative process optimization model that divides the original problem into multiple subproblems, with each subproblem being optimized in turn. According to the results of simulations with a numerical model, our proposed method consumes considerably less energy than just the two benchmark methodologies.