Due to the lack of real-time planning for fire escape routes in large buildings, the current route planning methods fail to adequately consider factors related to the fire situation. This study introduces a real-time fire monitoring and dynamic path planning system based on an improved ant colony algorithm, comprising a hierarchical arrangement of upper and lower computing units. The lower unit employs an array of sensors to collect environmental data in real time, which is subsequently transmitted to an upper-level computer equipped with LabVIEW. Following a comprehensive data analysis, pertinent visualizations are presented. Capitalizing on the acquired fire situational awareness, a propagation model for fire spreading is developed. An enhanced ant colony algorithm is then deployed to calculate and plan escape routes by introducing a fire spread model to enhance the accuracy of escape route planning and incorporating the A* algorithm to improve the convergence speed of the ant colony algorithm. In response to potential anomalies in sensor data under elevated temperature conditions, a correction model for data integrity is proposed. The real-time depiction of escape routes is facilitated through the integration of LabVIEW2018 and MATLAB2023a, ensuring the dependability and safety of the path planning process. Empirical results demonstrate the system's capability to perform real-time fire surveillance coupled with efficient escape route planning. When benchmarked against the traditional ant colony algorithm, the refined version exhibits expedited convergence, augmented real-time performance, and effectuates an average reduction of 17.1% in the length of the escape trajectory. Such advancements contribute significantly to enhancing evacuation efficiency and minimizing potential casualties.