This paper addresses the limitations of battery-operated wireless sensor networks, particularly in wireless body area networks (WBAN), by proposing a compressive sensing PEGASIS protocol for efficient data handling. The study demonstrates that this approach enhances energy efficiency, allowing for uninterrupted data transmission of complex medical images during emergency monitoring. Comparisons with traditional protocols like LEACH reveal the superior performance of PEGASIS in terms of energy consumption and network stability.