A hazardous materials team was called to the Houston County jail in Dothan Thursday morning.
Officials with the Dothan Fire Department were conducting an air quality check inside the building following complaints about ammonia fumes from a nearby fertilizer plant.
Officials say near-unacceptable levels of carbon monoxide were detected in the kitchen area, and the hazardous materials unit was called in.
The team checked out the situation and found a faulty ventilation fan over a stove.
Sheriff Lamar Glover said the fan was repaired to correct the problem.