In contemporary evacuation systems, the evacuation sign typically points fixedly towards the nearest emergency exit, providing guidance to evacuees. However, this static approach may not effectively respond to the dynamic nature of a rapidly evolving fire situation, in particular if the closest emergency exit is compromised by fire. This paper introduces an intelligent evacuation sign control mechanism that leverages smoke and temperature sensors to dynamically adjust the direction of evacuation signs, ensuring evacuees are guided to the quickest and safest emergency exit. The proposed mechanism is outlined through a rigorous mathematical formulation, and an ESP heuristic is devised to determine temperature-safe, smoke-safe, and congestion-aware evacuation paths for each sign. This algorithm then adjusts the direction light on the evacuation sign to align with the identified evacuation path. To validate the effectiveness of this approach, fire simulations using FDS software 6.7.1 were conducted in the Taipei 101 shopping mall. Temperature and smoke data from sensor nodes were utilized by the ESP algorithm, demonstrating superior performance compared to that of the existing FEL algorithm. Specifically, the ESP algorithm exhibited a notable increase in the probability of evacuation success, surpassing the FEL algorithm by up to 34% in methane fire scenarios and 14% in PVC fire scenarios. The significance of this improvement is more pronounced in densely congested evacuation scenarios.