Maxwell's Demon Runs Your Energy Management System
In 1867 Maxwell imagined a being that seemed to beat the second law using observation alone. Physics spent 145 years proving the trick has a cost, and the same ledger decides whether your energy monitoring pays for itself.

A very observant and neat-fingered being
Maxwell's demon was born in a letter. On 11 December 1867, James Clerk Maxwell wrote to his friend Peter Guthrie Tait and described a box of gas divided in two, with a tiny hole in the partition, minded by “a very observant and neat-fingered being”. The being watches the molecules. When a fast one approaches from side A, it opens the hole and lets it through to B. When a slow one drifts up from B, it lets it back into A. It pushes nothing and burns nothing. And yet, Maxwell wrote, “the hot system has got hotter and the cold colder and yet no work has been done, only the intelligence of a very observant and neat-fingered being has been employed.”
Heat flowing uphill, powered by observation. He published the idea in Theory of Heat (1871) under the heading “Limitation of the Second Law of Thermodynamics”: a being “whose faculties are so sharpened that he can follow every molecule in its course” could sort a lukewarm gas into hot and cold “without expenditure of work.” The name came later, and not from Maxwell. William Thomson, Lord Kelvin, christened it a demon in Nature in April 1874. Maxwell never warmed to that. In a later note to Tait he ran through his own catechism, Who gave them this name? Thomson, and ended with a correction that every controls engineer will appreciate: “Call him no more a demon but a valve.”
A valve driven by information. Hold that thought, because I think it is the most accurate description of an energy management system anyone has written, and the way physics eventually resolved the paradox tells you exactly when such a system pays for itself and when it doesn't.
The exorcism took 145 years
The demon looked like a genuine hole in the second law, and it took three generations to close it. Leo Szilard (1929) shrank the box down to a single molecule and showed the paradox survives even there, then argued the second law is only saved if acquiring the information carries a compensating entropy cost. One binary decision, one unit of k ln 2. It was the first time anyone put a thermodynamic price on a bit.
Szilard put the cost in the wrong place, as it turned out. Rolf Landauer (1961) showed the unavoidable expense is not measuring but forgetting: erasing one bit of information must dissipate at least kT ln 2 of heat, about 3 × 10⁻²¹ joules at room temperature. Charles Bennett (1982) then closed the loop. Measurement can in principle be done reversibly, for free. But the demon's memory is finite, and to keep sorting it must wipe the record of the last molecule to make room for the next, and that erasure dissipates at least as much entropy as the sorting ever saved. The demon doesn't beat the second law. It takes out a loan against it and settles the bill when it clears its memory. Landauer compressed the whole saga into a three-word slogan, the title of [his 1991 Physics Today article](https://www.w2agz.com/Library/Limits%20of%20Computation/Landauer%20Article,%20Physics%20Today%2044,%205,%2023%20(1991).pdf): information is physical. (The principle is 1961; the phrase is 1991. Pop science swaps them constantly.)
Then it stopped being a thought experiment. In 2010, Toyabe and colleagues made a Brownian particle climb a spiral-staircase potential using nothing but feedback control on position measurements: information converted directly into stored free energy, a working Szilard engine. In 2012, Bérut and colleagues measured the heat of erasing one bit and found it approached, and never fell below, kT ln 2. The demon is real. It just pays taxes.
What does Maxwell's demon have to do with energy management?
Every facility is already running Maxwell's experiment, mostly badly. A sub-meter is the demon's eye. Anomaly detection is the trapdoor decision: this reading passes, that one gets flagged. And the chiller running flat out through an unmetered riser all weekend is the fast molecule nobody sorted, indistinguishable from normal load in the monthly total, quietly heating the wrong side of the box.
Buildings waste energy precisely where nobody is looking. That's not a slogan, it's close to a definition: waste that somebody could see would already have a work order against it. Information asymmetry and operational disorder are the same quantity viewed from different sides, and in Malaysia that quantity is denominated in ringgit, as maximum demand charges on a peak kW nobody watched, power factor surcharges, and kWh that bought neither comfort nor production.
The evidence that looking pays is unusually solid. LBNL's meta-analysis of building commissioning, 643 buildings across the US, found more than 10,000 energy-related problems by systematically examining building data, with median whole-building savings of 16% in existing buildings and a median payback of 1.1 years. That is the demon's arbitrage in the wild: most buildings sit so far from their own efficient frontier that observation plus sorting through sub-metered data recovers double-digit percentages, for the price of paying attention.
The demon's ledger
Now the honest part. The demon isn't free, and in a building the economics run backwards from Bennett's resolution. In the physics, measurement can be nearly free and erasure is the costly step. In a plant room, measurement is the expensive step: meters, CTs, gateways, calibration, network upkeep, someone's time. And the building's equivalent of unerased memory, the dashboard nobody opens, the report filed unread, is where the value dies. Unacted information is worse than free. You paid for it, and it dissipated anyway.
This failure mode has a name and a benchmark. EEMUA 191, the de facto standard for alarm management, targets fewer than one alarm per operator per ten minutes in steady state, which is a formal engineering admission that a human demon has finite sorting bandwidth. A demon that flags every molecule sorts nothing. It's just noise with a sensor budget.
So the design problem for an energy management system is not seeing more; it's closing the loop from sight to action without flooding the human in the middle. That's the shape we built CobiNeural around: sub-metering is the eye, alerts triaged hard before anything reaches WhatsApp are the trapdoor, and measurement and verification is the settlement, where a sorted molecule becomes a verified kWh saved and an auditable line in an EECA or ISO 50001 report. The demon only pays for itself when the cycle completes. That is not marketing caution; it's Bennett's theorem restated for facilities.
Where the metaphor ends
Three honest breaks, because the metaphor earns nothing if it's stretched. First, scale. Landauer's bound is about 3 × 10⁻²¹ joules per bit; a kWh is 3.6 × 10⁶ joules. Twenty-four orders of magnitude apart. No building has ever failed at Landauer's limit. Buildings fail at the attention limit, and the real thermodynamic cost of your demon is sensor capex and human bandwidth, not kT ln 2. The metaphor is structural, not caloric.
Second, no EMS beats the second law. The demon seemed to and, on final audit, didn't. Monitoring cannot create energy. It can only stop you paying for disorder you couldn't see, which at best moves you toward the efficient frontier and never past it. Anyone promising more is selling a perpetual motion machine with a login page.
Third, a building is not a closed box of ideal gas. It's an open system full of people, and the "molecules" being sorted are schedules, setpoints and valve commands that people control. That's a feature. The resolution of the paradox says the cost of intelligence is real but finite, and in a building it is vastly smaller than the waste it removes.
We've written before about why buildings decay: the second law guarantees that every plant room drifts toward disorder unless somebody keeps paying to hold it back. This essay is the other half of the same law. Entropy and information sit on opposite sides of one ledger, which is why the antidote to decay turns out to be measurement, acted on, with the memory cleared for the next cycle. Maxwell's being sat at a trapdoor watching molecules. Yours sits on a DIN rail watching feeders. Call it no more a demon but a valve.
If you'd like to see what your building looks like through the demon's eye, and more importantly what it's worth to act on it, come and have a look with us.


