Traditional network data transmission (DT) has certain limitations in terms of processing, storage, and communication capabilities. Moreover, DT is easily affected by the network environment, which can reduce the real-time performance of DT. In severe cases, network transmission failures, DT interruptions, and other issues may even occur. As a new network, wireless sensor networks (WSN) have been widely used in military, industrial, agricultural, medical and other fields. In this paper, WSN was regarded as an important research method, and in-depth research was carried out around the real-time and energy consumption (for the convenience of the following text, the abbreviation for energy consumption is EC) of WSN DT. This paper focused on the issues of real-time performance, EC, and real-time transmission. It balanced EC and improved real-time performance through the low energy adaptive clustering hierarchy (LEACH) protocol and the power-efficient gathering in sensor information systems (PEGASIS) protocol. The experimental results showed that the real-time rates of LEACH under single reaction nodes were 45.5% and 48.6%, respectively. The lowest and highest real-time rates of PEGASIS were 86.2% and 89.5%, respectively. The real-time rate of PEGASIS was much higher than that of LEACH, proving that the proposed PEGASIS had high real-time performance and reduced DT delay.