Home/Blog/Keeping Control Systems Reliable i…
Field notes · Sector guide

Keeping Control Systems Reliable in Composting and Anaerobic Digestion Plants

By Jonathan Gilmour··17 min read

Most control problems at an organics site do not start in the control panel. They start in the air. Hydrogen sulfide (H2S), ammonia (NH3), water vapor coming off a hot pile, fine organic dust, and a temperature that swings twenty or thirty degrees between a summer afternoon and a fall night. The programmable logic controller (PLC), the human-machine interface (HMI), the sensors, the wiring, and the network gear all have to live in that. When something goes wrong, the instinct is to open up the program and start looking for a logic bug. Often the logic is fine and the environment is the story.

I work on this kind of plant as an independent, vendor-neutral controls engineer, which just means I have no product line to sell and no reason to steer you toward one brand. This guide is the long version of how I think about keeping composting and anaerobic digestion (AD) controls reliable. It is written for the person who actually runs the plant or maintains it, not for a purchasing department. If you get real use out of it and never call me, that is a good outcome.

The environment is corroding your control system

Start by accepting that the air at an organics facility is chemically active. H2S in the presence of moisture is hard on copper and silver. You will see it first on things nobody armored: relay contacts, unplated connector pins, the copper traces on a cheap input card, the shield drain wires that somebody left bare in a junction box. It shows up as a black or gray tarnish. Once a contact or a pin tarnishes, its resistance climbs, and that is where a lot of "intermittent" faults are born.

A few things help, and none of them are exotic:

  • Keep control electronics out of the process air. A sealed, gasketed enclosure held at a small positive pressure with clean instrument air or filtered outside air keeps the corrosive stuff from getting in. Keep two different jobs straight here, because people constantly conflate them. A clean-air positive-pressure purge to slow corrosion is an environmental-severity mitigation under ISA-71.04 — you are trying to move the enclosure interior out of a corrosive class such as G3 or GX toward G1 — and it does not by itself change any electrical area classification. NFPA 496 pressurization is a separate function: it reduces the electrical area classification of an enclosure sitting in a hazardous area, and it only counts if loss of pressure alarms and either de-energizes the enclosure or otherwise returns the area to a safe state. Around a digester the surrounding space is usually a classified location in its own right — typically Class I, Division 1 or 2 (or Zone 0/1/2) under NEC Articles 500/505 — and the equipment, wiring methods, and any pressurization system have to match that classification, not merely look rugged.
  • Watch what you put inside the enclosure. Corrosion-inhibiting sachets, conformal-coated boards where you can get them, and gold-flashed connectors instead of bare tin all buy you time.
  • Manage temperature and condensation deliberately. A panel that heats up during the day and cools at night breathes. Each cycle pulls damp air in through every gap. A thermostat-controlled heater sized to keep the interior a few degrees above the dew point does more for long-term reliability than most people expect, and an enclosure cooler or heat exchanger keeps the day side in check.
  • Treat cable entries and unused gland holes as leaks. They are.

Sensors take the worst of it because they have to sit in the process. Temperature probes buried in a pile, oxygen and moisture sensors in the airflow, gas analyzers on the digester and the biofilter. These drift and foul, and a fouled sensor that still reports a plausible number is more dangerous than one that fails outright, because the control system trusts it. Build a habit of checking field devices against a handheld reference on a schedule, and log the drift so you can see a sensor going bad before it lies to you.

Aeration and blower control

Aerated static pile (ASP) and in-vessel composting both live or die on airflow. You are trying to give the microbes enough oxygen, pull enough heat out to hold the pile in the right range, and do it without wasting blower energy or drying the pile to a stop. That is a genuine multi-variable problem, and it is where I see the most over-complicated logic.

A few principles that hold up in the field:

Decide what the control is actually chasing. Temperature feedback and oxygen feedback pull in different directions at different points in the batch. Early in a batch the pile is oxygen-limited and you are feeding biology. Later you are mostly moving heat. A control strategy that blends temperature and oxygen targets, and shifts emphasis as the batch matures, tends to behave better than one that slaves everything to a single setpoint. As a rough rule of thumb, most active-composting operations aim to keep free-air-space oxygen somewhere in the 5 to 15 percent range at the pile — enough to stay aerobic and avoid odor without over-drying — but treat that as a starting band to confirm against your own feedstock, probe placement, and permit, not a fixed setpoint. Timer-based aeration is simple and surprisingly robust as a fallback, but it wastes air and cannot respond to a hot spot.

Match the actuator to the job. A variable frequency drive (VFD) on a blower gives you smooth turndown and real energy savings, but a VFD is also another box in the corrosive air, another heat source, and another thing that trips. On/off blowers with well-chosen dampers are cruder but have fewer failure modes. Reversing aeration, where you alternate pushing and pulling air through the pile, evens out the moisture and temperature gradient but adds valves and sequencing that have to be right. None of these is the correct answer everywhere. It depends on your pile geometry, your feedstock, and how much maintenance attention the plant can realistically give.

Tune the loop so it stops hunting. A blower loop that surges up and down is usually tuned too aggressively for a process with this much thermal lag. Composting responds in tens of minutes to hours, not seconds. Slow the loop down, widen the deadband, and let it settle. If you are fighting a nuisance high-temperature or low-oxygen alarm, the honest fix is almost always to understand why the reading is real or to correct a sensor, not to widen the alarm until it stops bothering you. Alarm rationalization is worth doing properly, and the thinking I use on process plants generally carries over well; there is more in this field note on alarm rationalization.

Keep the biofilter and odor path in the loop. On most permitted sites the aeration system and the odor control are the same system. If you pull air through a pile, you are pushing it through a biofilter or scrubber, and the pressure drop across that media is a controlled variable whether you treat it as one or not. Trending biofilter differential pressure and moisture will tell you about a clogging bed long before the neighbors do.

Anaerobic digester control: protect the biology, then protect the plant

An anaerobic digester is a slow living reactor, and the control system's first job is to not upset it. The bugs that make methane are fussy about temperature, pH, and how fast you feed and load them. They recover slowly from a shock and can take weeks to come back. So the mindset here is different from a fast mechanical process: smooth, gradual, and conservative beats fast and clever almost every time.

Before any of the control talk: the gas around a digester will hurt you faster than anything in this guide. Read this part as a person, not an engineer. Hydrogen sulfide is acutely toxic and it lies to you. Around 100 ppm it deadens your sense of smell (olfactory fatigue), so it stops smelling worse right as it turns dangerous, and roughly 100 ppm is also the IDLH (immediately dangerous to life or health). You cannot use your nose as a detector; it quits on you at exactly the wrong moment. Methane is explosive in air from about 5 percent (the lower explosive limit, LEL) up to about 15 percent (the upper explosive limit, UEL). Digesters, gas holders, sumps, wet wells, and pump vaults are permit-required confined spaces: test the atmosphere before entry, every single time. Anyone working the gas areas carries a bump-tested personal 4-gas monitor (H2S, LEL, O2, CO), knows the wind and their own escape direction, and never enters a gas structure alone.

Feed and loading. Organic loading rate is the lever that most often goes wrong. Feeding too much too fast drives volatile fatty acids up and pH down, and once the digester sours you are into a long recovery. Good feed control meters the substrate steadily rather than in big slugs, ramps changes gradually, and ideally trends a leading indicator like the ratio of volatile fatty acids to alkalinity rather than waiting for pH or gas production to fall off, because by then you are already behind. If your instrumentation cannot see that ratio directly, feed conservatively and change one thing at a time.

Mixing. Whether it is gas mixing, mechanical draft-tube mixers, or pumped recirculation, the goal is to keep the contents homogeneous without shearing the biology or letting a crust or grit layer build. Mixing that is too vigorous or continuous can be as bad as too little. Interlock the mixers sensibly with level and with any foam detection you have, because pushing a mixer through a low level or a heavy foam event is how you damage equipment.

Temperature. Digesters run either in the mesophilic range (around 35 C / 95 F) or the thermophilic range (around 55 C / 130 F), and they hate being moved. The heating loop, usually hot water through the digester heat exchanger, needs steady control and good redundancy, because a lost heating loop in cold weather stalls gas production. Trend the approach temperature across the exchanger; a slow loss of heat transfer usually means fouling.

The interlocks that actually matter. This is where I want to be very clear. Biogas is roughly 60 percent methane and it contains H2S, so a digester is a flammable and toxic gas system sitting in a wet, corrosive envelope. Overpressure and underpressure protection on the digester, flame arrestors, the flare or gas-use interlocks, gas detection, and the pressure and vacuum relief devices are safety functions. Retuning a nuisance trip so the process runs smoother is legitimate engineering work. Defeating, jumpering, or "temporarily" bypassing a protective interlock is not, and I will not do it or advise it. If an interlock is tripping when it should not, the answer is to find out why the process or the instrument is putting it into that condition and fix that, not to remove the protection.

One interlock family deserves its own paragraph: guarding against air ingress into the gas space. A digester roof or membrane is designed to hold biogas, not an explosive mixture, and if air gets pulled into the headspace you can build a fuel-air mixture inside the vessel itself. That is why the vacuum-relief (underpressure) protection and the gas-blower low-pressure cutout are not just equipment protection — they exist to stop the gas space from being drawn below the point where air is sucked in past seals, condensate traps, or a starved gas line. Tie them together: the blower must not be able to pull the digester into a vacuum, and the vacuum relief has to be sized, clear, and in service so it opens on clean gas or inert make-up rather than letting the roof pull air.

Beyond safety, the interlocks that protect the asset and the biology are worth designing carefully: low-level protection on feed and recirculation pumps so they never run dry, foam-over protection, high-temperature limits on the heating loop, and permissives that stop you feeding into a digester that is not being mixed or heated. These rarely get credit and they prevent the events that cost weeks.

Chasing intermittent faults in a place that eats electronics

Intermittent faults are the signature problem of this sector, and they are maddening precisely because they will not repeat on demand. A blower drops out for ten seconds at three in the morning. A pile temperature reads open-circuit for one scan and then recovers. An input toggles with no obvious cause. By the time anyone looks, everything is normal.

My approach is boring on purpose:

  • Instrument before you theorize. Set up high-speed data capture or a PLC-side event log that timestamps the fault and the surrounding I/O and analog values. You cannot fix what you cannot see, and human memory of "it happened around lunchtime" is not data. I wrote up how I work these on organics sites specifically in this field note on intermittent PLC faults.
  • Correlate against the environment. Because so much of this is corrosion and thermal cycling, plot the fault times against ambient temperature, humidity, and the plant's own daily cycle. A fault that clusters at dawn, when panels are coldest and condensation is heaviest, is telling you something a logic trace never will.
  • Suspect the connection before the component. In this environment, a tarnished terminal, a work-hardened wire that vibration has cracked, a shield that lost its ground, or a connector that corroded is far more likely than a bad CPU. Reflow suspect terminations, check grounds and shields, and look for the green or black powder that gives corrosion away.
  • Chase noise honestly. VFDs, contactors, and long cable runs in a wet plant make for real electrical noise. Poor shielding and shared grounds turn that noise into phantom input transitions and analog jumps. Proper single-point grounding, separated signal and power routing, and shielded cable landed correctly at one end fix more "software glitches" than any code change.

The discipline is to keep narrowing it with evidence until the fault has nowhere to hide. It is slower than guessing and it actually works.

Field triage for the three faults I get called about most

When it is 2am and the plant is misbehaving, work symptom to cause to first check rather than diving into the code. These three cover most of the calls I get.

Symptom Likely cause First thing to check
Blower will not hit its airflow setpoint Clogged biofilter/media or fouled ductwork, worn or slipping damper linkage, or too many zones open at once so the header sags and each zone gets weak puffs — which then gets blamed on the software Read the blower's true power, not just amps; a centrifugal fan moving no air pulls low power, so power tells you whether it is actually loaded. Check media/filter differential pressure, walk the damper through its full stroke, and compare header pressure against total air demand before touching a line of code
Pile temperature reads open-circuit or erratic Corroded probe or a thermowell packed with debris, a cracked or work-hardened lead, a tarnished terminal, or a shield landed at both ends injecting noise into the RTD/thermocouple loop Compare against a handheld reference, ohm out the probe and its lead, reflow the suspect termination, and confirm the shield is grounded at one end only. Check where the reading falls against the NAMUR NE43 bands to tell a real out-of-range from a broken wire
Intermittent input dropout A tarnished terminal or connector pin (look for a spade lug that images warm under load), condensation and thermal cycling at dawn, VFD or contactor noise, or a shared supply sagging when a big load cycles — I once chased a dropout to a chiller kicking on in the next room Timestamp the dropout and plot it against ambient and against nearby loads switching; suspect the connection before the card; and confirm the 24V supply holds up under load with a scope or a fast meter, not a steady-state reading

I write control code for a living and I will still tell you when software is the wrong tool. Plenty of problems at an organics plant look like control problems and are not.

If a blower cannot hit airflow because the biofilter media is clogged or a damper linkage is worn, no loop tuning fixes that. If a feed pump keeps cavitating, the logic did not cause it and cannot cure it. If a temperature reading is unstable because the probe is corroded or the thermowell is packed with debris, the answer is a new sensor, not a filter in the code. And when an input card has been sitting in H2S for eight years and half its channels are flaky, the right move is to replace the card, and probably to improve the enclosure so the next one lasts, rather than to write logic that works around dying channels.

There is also a point where the controller itself is the liability. A PLC platform that the manufacturer no longer supports, that you cannot get spare cards for, and that nobody can program anymore is a risk that no clever code offsets. Migrating it is a project with real trade-offs, and it should be planned rather than forced on you by a failure at the worst possible time; I put my thinking on that in this field note on migrating obsolete controllers. The general rule I hold to: put the money where the physics is. A well-chosen mechanical fix or hardware upgrade often buys more reliability than months of code.

SCADA for monitoring, odor, compliance, and the record you will need

Supervisory control and data acquisition (SCADA) earns its keep at an organics plant in two ways: it helps you run the process, and it produces the record that keeps you permitted.

On the process side, the value is trends and context. A single live number tells you where you are. A trend tells you where you are going, which for a slow biological process is the thing that matters. Digester gas flow and composition, feed rates, pile temperatures and oxygen, blower status and energy, biofilter differential pressure and moisture, and heating-loop performance are all worth trending long-term so you can see slow drift and seasonal patterns.

On the compliance side, most permitted composting and AD sites have to demonstrate things: that piles hit and held their required temperatures for pathogen reduction, that odor control ran, that emissions or flare uptime met the permit. Pathogen reduction is the one worth pinning down in your data model. If you are producing a Class A biosolids-type product, the Process to Further Reduce Pathogens (PFRP) under 40 CFR Part 503 is a time-at-temperature requirement, and the commonly cited threshold is around 55 C (131 F) held for the required duration — but the duration is not one number. It depends on the process: in-vessel and aerated static pile hold that temperature for a period on the order of a few days, while windrow composting requires the temperature to be maintained across a number of days with a set number of turnings. Do not code a single generic timer against 131 F and assume you are covered; confirm the exact time, turning, and temperature requirement for your specific process and permit, and capture the sensor coverage that proves every part of the pile met it. If your SCADA is capturing that reliably, with timestamps and a tamper-resistant historian, then producing a report is a query rather than a scramble through paper logs. Design the data capture around the report you will actually have to file, and confirm it survives a power blip and a network hiccup.

A word of caution on alarms and dashboards. It is easy to bury the operator under hundreds of nuisance alarms and a wall of gauges. Present the handful of things that mean act now clearly, push the rest to trends and reports, and rationalize the alarm list so every alarm has a meaning and an action.

If you are also integrating new equipment into an existing plant, a new depack line, a new digester skid, or a receiving upgrade, the integration work has the same failure modes I see across materials handling; this field note on integrating equipment at a materials recovery facility covers the pattern, and my services page lays out how I approach that kind of work.

Honest limits

A guide like this can only take you so far, and I would rather say so than pretend otherwise. Every plant is a specific combination of feedstock, geometry, climate, and installed equipment, and the right control strategy for one is the wrong one for another. I have not seen your site, your trends, or your panels. Biological processes are variable by nature, and controls work is diagnostic; anyone who promises a guaranteed fix from the outside is guessing. What I can offer is a way of thinking that holds up, and the willingness to gather evidence before acting rather than after.

I also work across sectors that share this DNA, from aggregate and materials handling to food and beverage process plants, and a lot of what works in one carries into another. The two things I will not compromise on at an organics site are the biogas hazards — overpressure, air ingress into the gas space, and H2S exposure — and the integrity of a protective interlock; on nearly everything else, I would rather help you do less.

If you want a second set of eyes

If you run a composting or anaerobic digestion site in Northern California and you are fighting nuisance trips, unreliable sensors, aeration that will not settle, or a SCADA that is not giving you the record you need, I am happy to talk it through. Sometimes a conversation is enough to point you at the real problem. You can get in touch and tell me what the plant is doing.