This document presents research on optimizing light source wavelengths for detecting ammonia in water using unclad plastic optical fiber sensors. Experimental results indicate a linear relationship between output light intensity and ammonia concentration, with the optimal detection wavelength range between 450 nm and 580 nm, achieving high sensitivity, accuracy, and resolution. The findings emphasize the potential application of fiber optic sensors in monitoring ammonia levels to prevent environmental pollution.