This study proposes a low-cost and reliable smart fire alarm system that utilizes ultraviolet (UV) detection technology with an aspherical lens to detect fires emitting photons in the 185–260 nm range. The system integrates the aspherical lens with an accelerator and a digital compass to determine the fire source’s direction, allowing for safe evacuation and effective firefighting. Artificial intelligence is employed to reduce false alarms and achieve a low false alarm rate. The system’s wide detection range and direction verification make it an effective fire detection solution. Upon detecting a fire, the system sends a warning signal via Wi-Fi or smartphone to the user. The proposed system’s advantages include early warning, a low false alarm rate, and detection of a wide range of fires. Experimental results validate the system’s design and demonstrate high accuracy, reliability, and practicality, making it a valuable addition to fire management and prevention. The proposed system utilizes a parabolic mirror to collect UV radiation into the detector and a simple classification model that uses Fourier transform algorithm to reduce false alarms. The results showed accuracies of approximately 95.45% and 93.65% for the flame and UVB lamp, respectively. The system demonstrated its effectiveness in detecting flames in the range of up to 50 m, making it suitable for various applications, including small and medium-sized buildings, homes, and vehicles.