Volatile chlorinated solvents such as dichloromethane, chloroform and carbon tetrachloride are highly toxic to humans and living organisms. Precise detection and discrimination are crucial since they have structural similarities. Similarly, the presence of nitroaromatic explosive molecules in air and drinking water poses significant health risks, including damage to respiratory organs and skin irritation. To address these concerns, we developed a triarylamine-derived fluorescent organic molecule (TBA-HZ) and investigated its ability to sense both chlorinated solvents and nitroaromatic molecules in the solution state. The electroluminescence behaviour of the TBA-HZ molecule was further examined, revealing that when a polymer film doped with TBA-HZ was applied onto a near-ultraviolet LED, it produced a yellowish-white emission. Additionally, a thin layer of TBA-HZ combined with a polymer doped with a red phosphor on a blue LED resulted in a white light emission.