Wireless Sensor Networks (WSN) track and record environmental changes using sensor nodes. When designing sensors, consider antenna type, components, memory, lifespan, security, computing power, communication protocol, energy consumption, etc. Wireless sensor networks (WSN) are ad hoc. This network links tiny sensor nodes that share few resources (both severely constrained at the node level). This paper proposed a Secure and Fast Real-Time (SFRT) Routing Protocol, which is used to secure real-time data transmissions in WSN. The proposed method not only increases the reliability of WSN but also offers a more robust solution in case a sensor node link fails. Discarding packets, launching a denial-of-service attack, using black holes, launching a selective forwarding attack, and flooding the network with hello packets are some proposed security measures. It maintains high packet throughput in the presence of malicious nodes while using little energy. Simulations have helped examine recommended safety measures. The unique approach outperformed state-of-the-art methods in the NS2 simulation in all relevant metrics, including network longevity, packet delivery rate, energy efficiency, network throughput, and end-to-end delivery latency. Most current methods necessitate multiple retransmissions before success is declared, increasing data transmission costs by 5% compared to the best approach. The proposed method is highlighted for its ability to increase network lifetime by 20% and reduce the total delay by 30%.