---
title: Adsorption and gas sensors
heading: The Gibbs factor applied to molecules sticking to a surface, and how gas sensors, humidity sensors and vacuum systems depend on it
eyebrow: B11 · Lesson 17 · Adsorption
xp: 40
---

::: hook
A tin-oxide gas sensor in a kitchen smoke alarm, a capacitive humidity sensor in a phone, and the walls of a vacuum chamber all do the same thing: molecules from a gas land on a surface, stick for a while and leave again. How much of the surface is covered depends on the gas's pressure, the binding energy and the temperature. Lesson 16's Gibbs factor answers it in one line, and the answer explains why gas sensors are heated and why vacuum systems are baked.
:::

::: play
- The curve is the fraction θ of surface sites holding a molecule (28 u) against the gas's pressure, on a log scale.
- Raise the binding energy: the curve slides to lower pressures. Raise the temperature: it slides to higher ones, fast.
- The readout gives the pressure that half-covers the surface.
:::

```sim plot
view: graph
x: p = 0.01..1000000 Pa log
y: q = 0..1
slider: E = 0.3..0.9 step 0.01 = 0.55 eV
slider: T = 200..600 step 10 = 300 K
plot: p/(p + (28*1.66054e-27*1.380649e-23*T/(2*pi*(1.054572e-34)^2))^1.5*1.380649e-23*T*exp(-E/(0.00008617333*T))) | label: coverage θ | samples: 400
marker: q = 0.5 | label: half covered
readout: half-coverage pressure, Pa = (28*1.66054e-27*1.380649e-23*T/(2*pi*(1.054572e-34)^2))^1.5*1.380649e-23*T*exp(-E/(0.00008617333*T)) | digits: 3
```

::: predict
## A sensor's surface is half covered by a gas at 300 K. It's heated to 400 K with the gas pressure unchanged. What happens to the coverage?

- [ ] It rises, since the molecules hit harder
- [ ] It stays about the same
- [x] It falls sharply, because molecules leave far faster
- [ ] It falls by a third, in proportion to 1/T

::: reveal
It falls sharply. The rate of arrivals barely changes, but the time a molecule stays bound goes as $e^{\varepsilon/kT}$, so with ε = 0.55 eV it shrinks by a factor of about 200 between 300 K and 400 K. The half-coverage pressure rises by about 400 times, and a surface that was half covered ends up almost bare.
:::
:::

::: nameit
## A site in contact with a gas

Treat each surface site as a small system that can be empty (energy 0) or hold one molecule bound with energy −ε. In contact with a gas at chemical potential μ, its Gibbs sum is $\mathcal Z = 1 + \lambda e^{\varepsilon/kT}$, with absolute activity $\lambda = e^{\mu/kT}$. For an ideal gas, lesson 16 gave $\lambda = \frac{n}{n_Q} = \frac{p}{n_QkT}$.

## The Langmuir isotherm

The chance a site is occupied is

$$\theta = \frac{\lambda e^{\varepsilon/kT}}{1 + \lambda e^{\varepsilon/kT}} = \frac{p}{p + p_0}, \qquad p_0 = n_QkT\,e^{-\varepsilon/kT}.$$

At $p = p_0$ the surface is half covered. Since $n_QkT \propto T^{5/2}$, the half-coverage pressure rises steeply with temperature. Real molecules also vibrate in the site, which changes the prefactor, so ε here is an effective binding energy.

## Rates

The same balance holds molecule by molecule. Molecules strike each square meter at the rate $\frac{p}{\sqrt{2\pi mkT}}$ (lesson 41 derives it), and a fraction s of those that land on an empty site stick. A bound molecule leaves after an average residence time $\tau = \tau_0e^{\varepsilon/kT}$, with $\tau_0$ about $10^{-13}$ s, a vibration period. Setting arrival and departure rates equal gives the Langmuir form again.

## Gas sensors

In a metal-oxide sensor such as SnO₂, adsorbed oxygen grabs electrons from the grains, leaving depleted, high-resistance boundaries between them. A reducing gas such as CO or H₂ reacts with that oxygen, returns the electrons, and the resistance falls. The sensor is heated to a few hundred °C so adsorption and reaction keep up with the gas within seconds. Humidity sensors use water adsorbed in a polymer to change a capacitor's dielectric, and quartz microbalances weigh the adsorbed layer by its effect on a crystal's resonance.
:::

::: example
## A surface binds 28 u molecules with ε = 0.55 eV. What pressure half-covers it at 300 K, and at 400 K?

::: solution
1. **The gas at 300 K.** $n_Q = 1.45 \times 10^{32}$ m⁻³ (lesson 16's value for nitrogen) and kT = 25.85 meV.
2. **Half-coverage pressure at 300 K.**
   $$\begin{aligned} p_0 &= n_QkT\,e^{-\varepsilon/kT} \\ &= 1.45 \times 10^{32} \times 4.14 \times 10^{-21} \\ &\quad \times e^{-21.3} \\ &= 345\ \text{Pa} \end{aligned}$$
3. **At 400 K.** $n_QkT$ grows by $(4/3)^{5/2}$ = 2.05 and the exponent shrinks to 15.96, so
   $$p_0 = 1.45 \times 10^5\ \text{Pa}$$
   about 1.4 atmospheres.
4. **A gas at 10 Pa.** It covers 2.8% of the surface at 300 K and 0.007% at 400 K.

**Answer:** 345 Pa half-covers the surface at 300 K, and $1.45 \times 10^5$ Pa (about 1.4 atmospheres) at 400 K.
:::
:::

::: example
## Molecules bound with 0.5 eV and with 1.0 eV sit on a surface. How long does each stay, at 300 K and at 600 K? Take $\tau_0 = 10^{-13}$ s.

::: solution
1. **Residence time.**
   $$\tau = \tau_0e^{\varepsilon/kT}$$
2. **0.5 eV at 300 K.**
   $$\begin{aligned} \tau &= 10^{-13}e^{19.3} \\ &= 25\ \mu\text{s} \end{aligned}$$
3. **1.0 eV at 300 K.** This is almost two hours:
   $$\begin{aligned} \tau &= 10^{-13}e^{38.7} \\ &= 6300\ \text{s} \end{aligned}$$
4. **At 600 K.** The exponents halve, giving 1.6 ns for 0.5 eV and 25 µs for 1.0 eV.
5. **Why it matters.** A strongly bound molecule that would sit for hours at room temperature leaves in microseconds when the surface is hot. That's why gas sensors run hot (to respond and recover quickly) and why vacuum chambers are baked at 150 to 250 °C to drive water off their walls.

**Answer:** at 300 K, 25 µs for 0.5 eV and 6300 s (almost two hours) for 1.0 eV; at 600 K, 1.6 ns and 25 µs.
:::
:::

::: example
## A clean surface with $10^{15}$ sites per cm² sits in nitrogen at $10^{-6}$ torr and 300 K. If every molecule that lands sticks, how long until it's covered? What about at $10^{-10}$ torr?

::: solution
1. **Arrival rate.** With p = 1.33 × 10⁻⁴ Pa, m = 4.65 × 10⁻²⁶ kg and kT = 4.14 × 10⁻²¹ J,
   $$\begin{aligned} \Phi &= \frac{p}{\sqrt{2\pi mkT}} \\ &= 3.8 \times 10^{18}\ \text{m}^{-2}\text{s}^{-1} \end{aligned}$$
2. **Time for a monolayer.** That's $3.8 \times 10^{14}$ per cm² per second, so the $10^{15}$ sites fill in
   $$\frac{10^{15}}{3.8 \times 10^{14}} = 2.6\ \text{s}$$
3. **At 10⁻¹⁰ torr.** It takes 26 000 s, about seven hours.
4. **Why it matters.** Surface experiments and clean device interfaces need ultra-high vacuum for exactly this reason: even a "good" vacuum coats a surface in seconds.

**Answer:** about 2.6 s at $10^{-6}$ torr, and 26 000 s (about seven hours) at $10^{-10}$ torr.
:::
:::

::: check
kind: parts
given: E = 0.4 | 0.55 | 0.7; T = 250 | 300 | 350

## A surface binds 28 u molecules with ε = {E} eV, at {T} K.

::: part
answer: (28*1.66054e-27*1.380649e-23*T/(2*pi*(1.054572e-34)^2))^1.5*1.380649e-23*T*exp(-E/(0.00008617333*T))
unit: Pa
tolerance: 1%

### What pressure half-covers it?

::: misses
- [(28*1.66054e-27*1.380649e-23*T/(2*pi*(1.054572e-34)^2))^1.5*1.380649e-23*T] Include the binding factor $e^{-\varepsilon/kT}$.
- [any] $p_0 = n_QkT\,e^{-\varepsilon/kT}$.
:::
:::

::: part
answer: 100/(100 + (28*1.66054e-27*1.380649e-23*T/(2*pi*(1.054572e-34)^2))^1.5*1.380649e-23*T*exp(-E/(0.00008617333*T)))
tolerance: 1%

### What fraction is covered at 100 Pa?

::: misses
- [any] $\theta = \frac{p}{p + p_0}$.
:::
:::
:::

::: check
given: a = 10 | 100; p = 5 | 50 | 500
answer: p/(p + a)
tolerance: 0.5%

## A surface is half covered at {a} Pa. What fraction is covered at {p} Pa (Langmuir)?

::: right
Right. $\theta = \frac{p}{p + p_0}$.
:::

::: misses
- [p/(2*a)] Coverage saturates; it isn't proportional to pressure.
- [any] $\frac{p}{p + p_0}$.
:::
:::

::: check
given: E = 0.4 | 0.7 | 1; T = 300 | 500
answer: 1e-13*exp(E/(0.00008617333*T))
unit: s
tolerance: 1%

## A molecule is bound by {E} eV, with $\tau_0 = 10^{-13}$ s. How long does it stay, on average, at {T} K?

::: right
Right. $\tau_0e^{\varepsilon/kT}$.
:::

::: misses
- [1e-13*exp(-E/(0.00008617333*T))] The residence time grows with binding energy.
- [any] $\tau = \tau_0e^{\varepsilon/kT}$.
:::
:::

::: check
given: p = 0.000001 | 0.00000001 | 0.0000000001; m = 2 | 18 | 28
answer: 1e19/(p*133.322/sqrt(2*pi*m*1.66054e-27*1.380649e-23*300))
unit: s
tolerance: 0.5%

## A clean surface with $10^{15}$ sites per cm² is exposed to {p} torr of {m} u molecules at 300 K. If all stick, how long until it's covered?

::: right
Right. Sites divided by the arrival rate $\frac{p}{\sqrt{2\pi mkT}}$.
:::

::: misses
- [1e19/(p/sqrt(2*pi*m*1.66054e-27*1.380649e-23*300))] Convert torr to pascals (133.3 Pa per torr).
- [any] Arrivals per m² per second: $\frac{p}{\sqrt{2\pi mkT}}$.
:::
:::

::: check
kind: choice

## Why is a tin-oxide gas sensor heated to around 300 °C?

- [ ] To make the oxide conduct like a metal
- [x] So molecules adsorb, react and leave within seconds rather than hours
- [ ] To burn off all the gas it detects
- [ ] To raise the gas pressure at its surface

::: right
Right. Residence and reaction times fall exponentially with temperature, so a hot sensor follows changes in the gas quickly and recovers after.
:::

::: misses
- [1] It stays a semiconductor; the resistance change comes from adsorbed oxygen.
- [3] It reacts some of the gas, but the signal comes from the change in surface oxygen.
- [4] Heating the surface doesn't change the gas pressure around it.
:::
:::

::: check
kind: parts
given: s = 0.1 | 1; p = 0.000001 | 0.0001

## A clean surface ($10^{19}$ sites per m²) is exposed to {p} Pa of nitrogen at 300 K, with sticking probability {s} on empty sites. Ignore desorption.

::: part
answer: s*p/sqrt(2*pi*28*1.66054e-27*1.380649e-23*300)/1e19
tolerance: 0.5%

### At what rate, per second, does each empty site fill?

::: misses
- [any] Sticking probability times arrivals per site.
:::
:::

::: part
answer: ln(10)/(s*p/sqrt(2*pi*28*1.66054e-27*1.380649e-23*300)/1e19)
unit: s
tolerance: 0.5%

### How long until 90% of sites are covered?

::: misses
- [0.9/(s*p/sqrt(2*pi*28*1.66054e-27*1.380649e-23*300)/1e19)] Only empty sites fill, so $\theta = 1 - e^{-rt}$.
- [any] Solve $1 - e^{-rt} = 0.9$.
:::
:::
:::

::: check
given: E = 0.4 | 0.6; T = 350 | 400
answer: 100*(T/300)^2.5*exp(E/0.00008617333*(1/300 - 1/T))
unit: Pa
tolerance: 1%

## A surface is half covered at 100 Pa at 300 K, with ε = {E} eV. What pressure half-covers it at {T} K?

::: right
Right. $p_0 \propto T^{5/2}e^{-\varepsilon/kT}$.
:::

::: misses
- [100*exp(E/0.00008617333*(1/300 - 1/T))] Don't forget the $T^{5/2}$ from $n_QkT$.
- [any] Scale by $(T/300)^{5/2}e^{\varepsilon/k(1/300 - 1/T)}$.
:::
:::

::: check
kind: derivation
vars: p = 0.01..100000, a = 0.01..100000

## A Langmuir surface with half-coverage pressure a, at gas pressure p.

::: step
answer: p/(p + a)

### What fraction θ is covered?
:::

::: step
answer: a/(p + a)

### What fraction is empty?
:::

::: step
answer: p*a/(p + a)^2

### What's $\frac{d\theta}{d\ln p}$, the response to a fractional change in pressure?
:::

::: right
Right. It's θ(1 − θ), largest at half coverage, which is where a sensor is most sensitive.
:::
:::

::: check
kind: python

## Write `half_pressure(eps, T, m)` returning the Langmuir half-coverage pressure in pascals for binding energy `eps` (eV), temperature `T` (K) and molecular mass `m` (u), and `coverage(p, eps, T, m)` returning θ at pressure `p` (Pa).

```python starter
import math

def half_pressure(eps, T, m):
    return 1.0

def coverage(p, eps, T, m):
    return 0.5

print(half_pressure(0.55, 300, 28), coverage(10, 0.55, 300, 28))
```

```python solution
import math

k = 1.380649e-23
hbar = 1.054571817e-34
u = 1.66053906660e-27
q = 1.602176634e-19

def half_pressure(eps, T, m):
    nQ = (m * u * k * T / (2 * math.pi * hbar**2)) ** 1.5
    return nQ * k * T * math.exp(-eps * q / (k * T))

def coverage(p, eps, T, m):
    return p / (p + half_pressure(eps, T, m))

print(half_pressure(0.55, 300, 28), coverage(10, 0.55, 300, 28))
```

```python tests
assert abs(half_pressure(0.55, 300, 28) / 345.2 - 1) < 0.003, f"28 u at 0.55 eV and 300 K is half covered at about 345 Pa; got {half_pressure(0.55, 300, 28)}"
assert abs(coverage(10, 0.55, 300, 28) - 0.0282) < 0.0003, "At 10 Pa the coverage should be about 0.028."
assert abs(half_pressure(0.55, 400, 28) / half_pressure(0.55, 300, 28) / 419.0 - 1) < 0.005, "Heating from 300 K to 400 K should raise p0 about 419 times."
```

::: right
Right. The exponential dominates: 100 K of heating multiplies the half-coverage pressure by about 400 at this binding energy.
:::
:::

::: explain
## Why does a surface's coverage depend so strongly on temperature when the gas pressure stays the same?

::: model
Coverage is a balance between molecules arriving and molecules leaving. The arrival rate depends on pressure and only weakly on temperature, through the molecules' speed. Leaving is thermally activated: a molecule bound by ε escapes only when a fluctuation gives it that much energy, so its residence time goes as $e^{\varepsilon/kT}$. With ε twenty kT or more, a modest rise in temperature shortens the residence time by orders of magnitude, so the balance shifts far toward bare sites. In the equilibrium picture the same thing appears as the site's Gibbs factor $\lambda e^{\varepsilon/kT}$: the binding term shrinks exponentially as T rises.
:::
:::

::: practice

::: check
given: a = 20 | 300; p = 10 | 1000
answer: p/(p + a)
tolerance: 0.5%

## Coverage at {p} Pa if half covered at {a} Pa?

::: misses
- [any] $\frac{p}{p + p_0}$.
:::
:::

::: check
given: E = 0.5 | 0.9; T = 300 | 450
answer: 1e-13*exp(E/(0.00008617333*T))
unit: s
tolerance: 1%

## Residence time for {E} eV at {T} K, $\tau_0 = 10^{-13}$ s?

::: misses
- [any] $\tau_0e^{\varepsilon/kT}$.
:::
:::
:::
