top of page

Ammonia Sensors in Poultry Sheds: Why the Reading Drifts and How to Trust Yours

Writer: Srihari Maddula
Srihari Maddula
13 hours ago
17 min read
A dense group of white broiler chickens seen from above
Ammonia from litter affects birds at their own height, long before people standing in the shed notice it. Photo: Egor Myznik on Unsplash

On the third morning after the sensors went in, the shed supervisor walked in at six, felt the sting in his eyes before he reached the middle of the house, and looked at the display by the door. It read 8 ppm. The controller, set to raise minimum ventilation above 20 ppm, was holding the fans at their winter setting. By the end of the first week the reading had drifted down to single digits every day, while the litter got wetter, the smell got stronger and the birds near the drinker lines started to look dull.

The sensor was not faulty in the usual sense. It was an electrochemical ammonia sensor doing exactly what that kind of sensor does when it is left in ammonia-laden air for days: it was becoming less sensitive, quietly, every hour it stayed exposed. The installation was set up to trust its reading, so the ventilation followed a number that was falling while the gas was rising.

This post follows that pattern through a composite broiler-shed installation, built from behaviour that research groups and farm advisers have documented rather than from one farm's records. It covers why ammonia matters, how the common sensors work and fail, the purge cycles and calibration routines that make readings trustworthy, how to size the sampling hardware, where to put the sensor, and what the data should drive.

In a poultry shed, the most dangerous ammonia reading is a confident low one. A sensor that fades quietly does more harm than one that fails loudly.

Why Ammonia Matters in a Broiler Shed

Ammonia in poultry houses comes mainly from the breakdown of uric acid in the litter. Its production rises with litter moisture, temperature, pH and the amount of manure, so it climbs as the flock grows and as the litter ages, and it peaks when ventilation is lowest: cold nights and winter months, when farmers keep fans at minimum to hold heat.

The targets are well established. A 2021 review in the journal Sensors summarises the welfare guidance for laying and broiler flocks: aim for less than 10 ppm at bird level, treat 20 ppm as the recommended limit, and keep short-term peaks during extreme weather below 25 ppm. For the people working in the shed, the same review cites an occupational recommended exposure limit of 25 ppm as an eight-hour average and 35 ppm for short-term exposure.

The consequences above those levels are both economic and welfare-related. Elevated ammonia irritates the eyes and respiratory tract, makes birds more susceptible to respiratory disease, and depresses growth and feed conversion. Much of the effect is cumulative, so a shed that runs a few parts per million too high for weeks can lose more than one that briefly spikes.

That makes ammonia a control variable, not just a reading. If the sensor is wrong, the ventilation is wrong, and the cost appears in the flock's performance weeks later.


Week One: A Sensor That Agreed With Nobody

The composite installation followed a familiar path. A shed controller was fitted with a continuous ammonia sensor mounted on a post near the middle of the house. The sensor came factory-calibrated; the installers checked that it reported a sensible figure on day one, set the ventilation logic to add air above 20 ppm, and left.

The first readings looked plausible: around 10 to 15 ppm on the first day, rising a little overnight. By day three, the morning reading had fallen even though the litter was wetter and the smell stronger. By day five, the sensor was reporting single figures at the times the supervisor found the shed most uncomfortable. A handheld meter borrowed from a neighbouring farm read more than twice the fixed sensor's figure, and a colorimetric draw tube read higher still.

Three explanations were offered in turn. The handheld was faulty. The sensor was in the wrong place. The ammonia was patchy. All three contained some truth, but none explained why the fixed sensor's readings fell steadily day after day while every other indicator rose.

The explanation lay in how the sensor worked.


How Electrochemical Sensors Work and Wear

Almost every portable electronic ammonia meter, and many fixed sensors, uses an electrochemical cell. Ammonia diffuses through a membrane into the cell, reacts at a working electrode, and produces a small current proportional to the concentration. The electronics convert that current into parts per million.

Poultry extension specialists at the University of Georgia make the consequence plain in their guidance on ammonia meters. Nearly all portable electronic meters rely on electrochemical sensors, and a sensor left inside a poultry house for hours or days tends to become "saturated" and report less ammonia than is present. The higher the concentration, the faster this happens, and long periods in ammonia-laden air also shorten the sensor's working life considerably.

Two mechanisms contribute. In many ammonia cells, the reaction consumes part of the electrolyte or changes its chemistry, so sustained exposure shifts the cell's response and shortens its life. And the cell's sensitivity falls under continuous exposure, then recovers partly when it is returned to clean air.

Electrochemical sensors are also affected by temperature and humidity, by cross-sensitivity to other gases, and by membrane fouling from dust. All of these drift slowly. Saturation is the fast effect, and it is the one that catches out continuous installations.


Saturation: The Reading That Fades While the Gas Stays

Saturation is not a theoretical concern. It is documented in research and in patent literature.

Researchers who built a system for measuring ammonia emissions from mechanically ventilated poultry buildings, used in a multistate project to establish baseline emission values in the United States, described their solution directly. Gates and colleagues used redundant electrochemical sensors that were purged on a cycle, specifically to remove the errors that saturation causes under continuous exposure to ammonia-laden air.

A patent describing a drift-correction method shows the effect in a controlled test. After a period at 25 ppm, the concentration was held at 5 ppm, yet after 18 hours the measured value had fallen almost to zero; the authors call this a saturation effect. When the sensor was flushed afterwards, the reading went negative, which only made sense relative to the saturated baseline.

The practical meaning is stark. A sensor left continuously in a shed for days can under-read by a large fraction of the true concentration, and the under-reading grows as the flock ages and ammonia rises. The error is not random noise that averages out; it is a steady bias in the dangerous direction.

The pattern also explains the opening. The fixed sensor had been exposed continuously since installation. The handheld had been switched on minutes before the comparison, in clean air, so it was fresh. The draw tube, a chemical method, does not saturate at all.


Modelling the Fade

To show the scale of the effect, our script models a week in a broiler shed with ammonia rising from about 12 to about 24 ppm as the flock ages, plus a daily swing of ±5 ppm as ventilation changes between day and night. It assumes the sensor's apparent sensitivity falls with accumulated exposure and recovers in clean air. The time constants are assumptions, chosen to produce behaviour of the kind described in the sources above, not measurements of any particular sensor.

Day

True mean concentration

Continuous sensor reports

Purged sensor reports

1

12.9 ppm

11.7 ppm (−9%)

12.8 ppm (0%)

3

16.3 ppm

10.0 ppm (−39%)

16.2 ppm (0%)

5

19.7 ppm

8.0 ppm (−59%)

19.6 ppm (−1%)

7

23.1 ppm

6.2 ppm (−73%)

23.0 ppm (−1%)

The continuously exposed sensor reports the opposite of the truth: its readings fall while the real concentration roughly doubles. The purged sensor, which spends most of each hour breathing clean air and samples the shed for only five minutes, tracks the true value closely all week.

The exact numbers depend on the sensor and on the assumed constants, so treat them as an illustration of direction and scale. What matters is the shape: continuous exposure produces a bias that grows with exactly the conditions you most need to detect.


The Code Behind the Model

The model is short enough to adapt to a particular sensor once its saturation and recovery behaviour has been measured on the bench.

import math

TAU_DOSE = 1500.0     # ppm*h of exposure that reduces apparent sensitivity to 1/e (assumed)
REC_H = 3.0           # recovery time constant in clean air, hours (assumed)

def true_ppm(h):      # base rising 12 -> 24 ppm over 7 days, diurnal swing of 5 ppm
    base = 12 + 12 * (h / 24) / 7
    return max(0.0, base + 5 * math.cos(2 * math.pi * (h % 24 - 3) / 24))

def simulate(purge, days=7, dt=0.1):
    dose, out = 0.0, []
    for i in range(int(days * 24 / dt)):
        h = i * dt
        sampling = (not purge) or ((h * 60) % 60 < 5)   # purged: 5 minutes per hour in shed air
        if sampling:
            c = true_ppm(h)
            dose = dose * math.exp(-dt / 200.0) + c * dt
            out.append((h, c, c * math.exp(-dose / TAU_DOSE)))
        else:
            dose *= math.exp(-dt / REC_H)                  # recovers in clean air
    return out

for purge in (False, True):
    day7 = [r for r in simulate(purge) if r[0] >= 144]
    true_mean = sum(r[1] for r in day7) / len(day7)
    reported = sum(r[2] for r in day7) / len(day7)
    print("purged" if purge else "continuous", round(true_mean, 1), round(reported, 1))

The useful exercise is to fit TAU_DOSE and REC_H from a bench test: expose a sensor to a known concentration for a day, log its reading, then purge it with clean air and log the recovery. Those two numbers tell you whether a given sensor can be used continuously at all.


The Consequence for Ventilation

A sensor error becomes a flock problem the moment the reading drives ventilation. Most controllers that use ammonia add minimum ventilation when the reading crosses a set point, commonly around 20 ppm.

If the sensor under-reads by 20 percent, a controller holding the reported value at 20 ppm is holding the true value at 25 ppm. At a 40 percent under-reading, the true value is about 33 ppm; at 50 percent, 40 ppm. Those are concentrations well above the recommended limits, sustained by a control loop that believes everything is fine.

The damage is gradual and hard to attribute. Birds do not collapse; they grow a little slower, convert feed a little worse, and develop respiratory problems a little more often. The flock's results at the end of the cycle are disappointing, and the ammonia sensor's log shows comfortable readings all the way through.

Winter makes it worse. Farmers reduce ventilation to save heat and fuel, ammonia rises, and the sensor saturates faster precisely because the concentration is higher. The control loop and the sensor's failure mode reinforce each other in the season when the margin is smallest.

Never let a single continuous electrochemical reading drive ventilation unchecked. Either purge it, cross-check it, or treat it as a trend indicator rather than a set point.

The First Fix: Purge Cycles

The research solution translates directly into farm hardware. Instead of leaving the sensor in shed air, it sits in a small chamber. A pump draws air through the chamber from one of two inlets: a sample line from the shed, or a clean-air inlet through an activated carbon or acid-impregnated filter that removes ammonia. A valve switches between them.

Research units have used long purge periods relative to sampling. A thesis describing an upgraded portable monitoring unit reports a cycle of 5.5 minutes of sampling, made up of a 3-minute line purge and 2.5 minutes of measurement, followed by a 54.5-minute sensor purge. The same work describes a multi-point calibration and a 48-hour laboratory evaluation with reference gas at 24.3, 54 and 99.3 ppm.

That cycle gives one measurement an hour, which is enough for ventilation control in a shed whose ammonia changes over hours, not minutes. Shorter purge periods give more frequent readings at some cost in saturation; the right balance depends on the sensor and should be set from a bench test.

The hardware adds parts: a small pump, a three-way valve, tubing, a particle filter on the sample inlet, and a clean-air filter that must be replaced periodically. It also adds one benefit beyond saturation: the clean-air phase gives a zero reference every hour, so slow baseline drift can be tracked and corrected automatically.


The Second Fix: Calibration You Can Do on a Farm

Purging addresses saturation; calibration addresses drift and ageing. Electrochemical sensors lose sensitivity over months, and their zero shifts with temperature and humidity.

A farm-practical routine has three levels. A bump test, done weekly or before a critical period, exposes the sensor to a known concentration briefly and checks that it responds within a tolerance. A span calibration, done monthly or after a failed bump test, adjusts the sensor's gain using certified gas at a concentration near the working range, typically 25 or 50 ppm. A zero check, done automatically in a purged system or manually with filtered air, confirms the baseline.

Calibration gas for ammonia needs care: it is reactive and adsorbs on regulator and tubing surfaces, so cylinders need suitable regulators and tubing, and the gas should flow long enough to stabilise the reading before adjusting.

Colorimetric draw tubes are an independent cross-check. They are chemical, single-use and slower to read, but they do not saturate and they need no calibration of their own. A monthly comparison between a draw tube reading at bird height and the fixed sensor catches problems that no electronic self-check will.

Record every calibration in the same system that logs the readings. A sensor whose span adjustment grows month after month is approaching the end of its life.


Placement: Bird Height, Not Head Height

Ammonia is released from the litter, and the birds breathe air a few tens of centimetres above it. Many sensors are mounted at head height for convenience, where the air is better mixed and often lower in ammonia than at bird level, particularly when ventilation is low.

For welfare and performance, the measurement that matters is at bird height, roughly 30 cm above the litter for broilers. That position exposes the sensor to more dust and to birds pecking at it, so it needs a guard, but a sample line with an inlet at bird height and the sensor itself mounted higher in a purge enclosure solves both problems.

Location along the house matters too. Ammonia is typically highest where litter is wettest, often near drinker lines with leaks or poor pressure, and where air movement is lowest, often at the end of the house away from the fans during minimum ventilation. Inlets, heaters and doors create local pockets of fresh air that read low.

One sensor cannot represent a long shed. A multi-point sampling system, with several sample lines switched through one sensor in turn, gives a profile of the house at modest extra cost and makes the purged design more efficient: while one line is sampled, the sensor is effectively purging between lines.


Dust, Humidity and Condensation

Poultry sheds are hard on sensors. Fine dust from litter, feathers and feed coats membranes and filters. Humidity is high, especially in winter with low ventilation and wet litter. Temperature swings between day and night cause condensation in tubing and enclosures.

Each of these affects ammonia sensing specifically. Ammonia is highly soluble in water, so condensation in a sample line absorbs ammonia from the sampled air and releases it later, smoothing and delaying the reading. Wet filters do the same. Dust-clogged membranes slow the sensor's response.

The practical measures are well established. Use a particle filter at the sample inlet and replace it on a schedule. Route sample tubing so condensate drains away from the sensor, or keep it slightly warmer than the shed air. Mount the sensor enclosure where it stays above the dew point. Use tubing materials that adsorb ammonia as little as possible, and keep lines as short as practical.

Most of these failures look like a slow, gradual sensor drift, which is why a regular cross-check against an independent method is part of the maintenance routine, not an optional extra.


Sizing the Sample Lines and the Pump

A purged, multi-point system lives or dies on its plumbing, and the arithmetic is simple enough to do before ordering parts.

Transport delay comes first. Tubing with a 4 mm internal bore holds about 12.6 ml per metre. A 20 m line therefore holds about 250 ml, and at a pump flow of 0.5 litres per minute the air takes about 30 seconds to travel from inlet to sensor. A 30 m line takes about 45 seconds. Those delays are harmless for ventilation control, but they set the minimum line purge: the 3-minute line purge in the research cycle above flushes a 20 m line about six times, which is what it takes for the air at the sensor to be fully replaced by air from the new sampling point.

Adsorption comes second. Ammonia sticks to tube walls, filters and fittings, so a fresh step in concentration arrives at the sensor smeared out over minutes, not as a sharp edge. Short lines, inert tubing, few fittings and enough flow all reduce the effect. A simple acceptance test is to apply a known gas at the far inlet and time how long the sensor takes to reach 90 percent of the final reading; if that time is several minutes longer than the transport delay, the line is adsorbing too much.

Pump choice comes third. A small diaphragm pump at 0.3 to 1 litre per minute suits most systems. It should sit after the sensor chamber, pulling air through it, so that the pump's own materials do not touch the sample before measurement, and it needs a flow sensor or pressure switch so a blocked inlet filter raises an alarm instead of quietly starving the sensor.

Line length (4 mm bore)

Volume

Transit at 0.5 l/min

Suggested line purge

10 m

126 ml

15 s

90 s

20 m

251 ml

30 s

3 min

30 m

377 ml

45 s

4.5 min

50 m

628 ml

75 s

7.5 min

A blocked sample line reads exactly like clean air. Monitor flow through every line, or the system will report a perfect shed from a filter full of dust.

Metal Oxide Sensors: Cheap, Hot and Humidity-Sensitive

Metal oxide semiconductor (MOS) gas sensors are the main low-cost alternative. A heated metal oxide film changes its resistance in the presence of reducing gases, including ammonia. MOS sensors are inexpensive, robust and long-lived, and they do not consume an electrolyte.

Their weaknesses are selectivity and environmental sensitivity. A MOS sensor responds to many gases, so other compounds in the shed affect it. Its response depends strongly on humidity and temperature. And its baseline drifts over time. Our script illustrates the humidity effect with an assumed sensitivity change of 0.6 percent per percent of relative humidity, calibrated at 50 percent:

Relative humidity

MOS reading as a share of true value

40%

94%

60%

106%

80%

118%

95%

127%

The exact coefficient varies by sensor, but the pattern is typical: a MOS sensor calibrated on a dry afternoon over-reads on a humid night. Compensation using a humidity and temperature sensor alongside helps, and many products do this, but it adds its own uncertainty.

MOS sensors suit trend indication and alarms better than precise control. They can tell you that ammonia is rising, which is useful, but they need cross-checking before you trust an absolute figure.


Optical and Newer Technologies

Optical methods measure ammonia by its absorption of infrared light at specific wavelengths. Laser-based methods such as tunable diode laser absorption spectroscopy, photoacoustic instruments and cavity ring-down spectroscopy are highly selective and do not saturate. They are the reference methods in research. A UK field evaluation at a poultry-house emission simulation site in Scotland compared five electrochemical sensors and one chemiresistive polymer sensor against a cavity ring-down instrument, and concluded that outdoor low-cost ammonia sensing was not yet ready for routine use. That study was outdoors, at low concentrations, which is a harder problem than inside a shed, but its caution about low-cost sensors applies broadly.

Optical instruments cost far more than farm sensors, so they are used for research, validation and occasional audits rather than routine control.

New sensor types aimed at livestock buildings are appearing. Some manufacturers have developed electrochemical sensors specifically for continuous livestock use, and others promote sorption-based sensors that consume nothing; one supplier claims a working life five to ten times that of electrochemical sensors. Claims like these should be tested against a reference before anyone relies on them, which is the same discipline this post recommends for every sensor.


How the Options Compare

Technology

Selectivity

Continuous use in a shed

Typical maintenance

Best role

Electrochemical, continuous exposure

Good

Poor: saturates and under-reads

Frequent calibration, limited life

Spot checks with a fresh sensor

Electrochemical with purge cycles

Good

Good

Filter changes, monthly span check

Ventilation control and records

Metal oxide (MOS)

Poor

Fair, with humidity compensation

Periodic cross-check

Trend and alarm indication

Colorimetric draw tubes

Good

Not applicable (single use)

None

Independent monthly cross-check

Optical (laser, photoacoustic)

Excellent

Excellent

Specialist servicing

Reference, research, audits

Newer livestock-specific sensors

Varies

Claimed good

Verify against reference

Evaluate before relying on

The table explains the choices most well-run sheds converge on: a purged electrochemical system, or a livestock-specific sensor that has been verified, for control; draw tubes for a monthly independent check; and optical instruments only when an audit or research question demands them.


What the Data Should Drive

A trustworthy ammonia reading earns its value through the decisions it informs.

Minimum ventilation is the first. In cold weather, the minimum ventilation rate is set to remove moisture and ammonia while conserving heat. An ammonia reading that rises above a threshold for a sustained period should increase minimum ventilation in steps, with a limit and an alarm if the threshold is still exceeded.

Litter management is the second. A gradual rise in ammonia across a cycle, faster than expected for the flock's age, points to wet litter, often from drinker leaks or poor ventilation. Locating the high readings along the house, with multi-point sampling, shows where to look.

Alarms are the third. Readings above short-term limits, or sustained readings above recommended limits, should alert the supervisor rather than wait for the next visit.

Records are the fourth. Ammonia history alongside temperature, humidity, ventilation state, water consumption and bird weights helps explain flock results afterwards and improves the next cycle. Our earlier posts on heat stress in broiler sheds and on automatic bird weighing describe the other measurements that complete that picture.

Ammonia data is useful only if a threshold changes the fans. Write the control and alarm rules before choosing the sensor, so the sensor is chosen for the decision it supports.

Cross-Checks That Catch a Failing Sensor

Even a well-designed system benefits from automatic plausibility checks, which flag a sensor that may be drifting before a person notices.

Ventilation response is one. When fans increase, ammonia should fall within a predictable time. A reading that does not respond to ventilation changes is suspect.

Flock age is another. Ammonia generally rises as the flock grows and litter accumulates. A reading that falls steadily over the cycle while ventilation stays constant matches the saturation pattern from the opening.

Carbon dioxide is a third. Many sheds measure CO2 for ventilation control. CO2 and ammonia are produced by different processes, but both rise when ventilation falls; if CO2 rises sharply and ammonia does not move at all, check the ammonia sensor.

Flat lines are the fourth. A reading that stays at exactly the same value for hours is often a failed sensor or a blocked sample line rather than a stable shed.

Each check is simple, and together they turn a single sensor into a system that can notice its own problems.


Questions to Put to a Sensor Supplier

Most ammonia sensors are sold on a range and a price. The figures that decide whether one will work in a shed are usually further down the datasheet, or missing from it, so ask for them in writing before buying.

Question

Why it matters

A reassuring answer

Is the sensor rated for continuous exposure, and at what concentration?

Separates purpose-built livestock sensors from portable cells

A stated continuous rating with test data at 20-50 ppm

What is the drift after 7 days at 25 ppm?

Reveals saturation directly

A measured figure, not "low drift"

What humidity range is the accuracy specified over?

Sheds run at 70-95% RH in winter

Accuracy stated up to at least 90% RH, non-condensing

What is the response time to 90% (T90)?

Sets how quickly a purge cycle can sample

Under 2 minutes at the sensor

What is the expected cell life in shed conditions?

Replacement cost and downtime

A figure for livestock use, not just storage life

How is calibration done in the field, and how often?

Determines staff workload

A bump-test and span procedure with gas specified

Is there a zero or clean-air reference built in?

Enables automatic drift tracking

A purge or reference cycle, or an input for one

A supplier who answers these with test data, rather than with the range and accuracy figures on the front of the datasheet, is far more likely to be selling something that survives a winter flock.

Ask for the seven-day drift figure at 25 ppm before anything else. It is the single number most likely to predict whether a sensor will repeat the opening of this post.

A Maintenance Schedule That Works

Interval

Task

Daily

Check readings against smell and observation; confirm alarms are active

Weekly

Inspect and clean sample inlet filters; check sample lines for condensate and flow

Before each flock and monthly

Bump test with known gas; compare with a draw tube at bird height

Monthly or after a failed bump test

Span calibration with certified gas; record the adjustment

Per manufacturer, often yearly

Replace the electrochemical cell; replace clean-air filters

Each cycle end

Review the ammonia history against flock results and ventilation logs

The schedule is modest, and most of it can be done by the shed staff with a little training. Its main purpose is to ensure that the number on the display is still connected to the air the birds are breathing.


Back to Week One

The sensor in the opening was reporting single figures because it had been sitting in shed air since installation, losing sensitivity a little every hour. Nothing about its display suggested a problem. The supervisor's eyes were the better instrument that week.


A purge chamber with a clean-air filter, a sample inlet at bird height, a flow alarm on the line, a weekly bump test and a monthly draw-tube comparison would have kept the reading honest, and the fans would have followed the air the birds were breathing rather than a fading number.

EurthTech is an engineering-first product design and embedded systems company with a development center in Hyderabad. To discuss a project, write to connect@eurthtech.com or see https://www.eurthtech.com/case-studies.

Comments


EurthTech delivers AI-powered embedded systems, IoT product engineering, and smart infrastructure solutions to transform cities, enterprises, and industries with innovation and precision.

Factory:

Plot No: 41,
ALEAP Industrial Estate, Suramapalli,
Vijayawada,

India - 521212.

  • Linkedin
  • Twitter
  • Youtube
  • Facebook
  • Instagram

 

© 2026 by Eurth Techtronics Pvt Ltd.

 

Development Center:

4th Floor, Krishna towers, 100 Feet Rd, Madhapur, Hyderabad, Telangana 500081

Menu

|

Accesibility Statement

bottom of page