A universal pH indicator is used to fabricate a fiber optic ammonia sensor. The advantage of this pH indicator is that it exhibits sensitivity to ammonia over a broad wavelength range. This provides a differential response, with a valley around 500 nm and a peak around 650 nm, which allows us to perform ratiometric measurements. The ratiometric measurements provide not only an enhanced signal, but can also eliminate any external disturbance due to humidity or temperature fluctuations. In addition, the indicator is embedded in a hydrophobic and gas permeable polyurethane film named Tecoflex®. The film provides additional advantages to the sensor, such as operation in dry environments, efficient transport of the element to be measured to the sensitive area of the sensor, and prevent leakage or detachment of the indicator. The combination of the universal pH indicator and Tecoflex® film provides a reliable and robust fiber optic ammonia sensor.