A chitosan-coated optical fiber sensor for the detection of ammonia chemical vapors is presented. The exposure of the chitosan to ammonia gas causes a change in refractive index of the chitosan. This change is detected using a simple fiber optic refractive index sensor.