ThisCalculator

Everyday

Pencil Gas Sensor Research: Can Graphite Detect Gases?

Updated · Standard formula, shown below

Baseline Resistance 100.00 kΩ
Resistance Change
0.50 %
Result
New Resistance
100.50 kΩ
Result
Temperature
25 °C
You entered

Yes, a pencil can make a functional gas sensor. Research shows that the graphite in a standard pencil lead can be used to create a chemiresistive sensor, where the electrical resistance of the graphite changes when exposed to certain gases. While not as sensitive or selective as commercial sensors, pencil-drawn sensors are inexpensive, simple to fabricate, and have been proven to detect gases like nitrogen dioxide (NO₂) and ammonia (NH₃).

How a Pencil Becomes a Gas Sensor

The core principle is chemiresistance. A gas sensor works by measuring how the electrical resistance of a material changes when it interacts with gas molecules. Pencil lead is primarily made of graphite, a form of carbon. Graphite is a semi-metal, meaning it conducts electricity but not as well as a metal like copper. When gas molecules like NO₂ adsorb (stick) onto the graphite surface, they either donate or withdraw electrons. This changes the number of charge carriers in the graphite, which in turn changes its resistance. The sensor is made by simply drawing a thick, uniform patch of graphite onto a piece of paper between two metal contacts. When the resistance is measured continuously, a spike or dip in resistance indicates the presence of a target gas.

What the Research Demonstrates

Peer-reviewed studies have demonstrated that pencil-drawn sensors can detect NO₂ at parts-per-million (ppm) levels. One common finding is that the response is greater at higher temperatures, but the paper substrate limits the operating temperature to around 100°C. Another key finding is that the sensor response is reversible; when the gas flow stops, the resistance returns to its baseline. Research also shows that the type of pencil matters. Softer leads (like 6B or 8B) contain more graphite and less clay binder, resulting in a lower baseline resistance and a stronger response to gases. Harder leads (like 2H) have more binder and are less sensitive. The thickness and number of strokes also affect the sensor’s performance, with thicker graphite layers generally providing a more stable signal.

Why Graphite Works for Gas Detection

Graphite’s layered structure is key. Gas molecules can intercalate, or slip between the graphene layers, which maximizes the surface area for interaction. The response is not just a surface effect; it is a bulk effect. The high surface-to-volume ratio of the thin pencil trace makes it particularly sensitive. Furthermore, graphite is chemically stable and does not react with many common gases, which means the sensor can be used multiple times without degrading. The main limitation is selectivity. A pencil-drawn sensor will respond to several different gases, so it cannot easily tell you which gas is present without additional filtering or data analysis.

How to Choose the Right Pencil

If you want to replicate this research, the choice of pencil is the most critical step.

  • Pencil Grade: Use a soft grade like 6B, 8B, or even a 10B. These have the highest graphite content.
  • Mechanical vs. Wooden: A mechanical pencil with 2mm graphite leads is easier to use for drawing uniform lines, but wooden pencils are fine if you sharpen them to a flat chisel point.
  • Paper Type: Use a smooth, glossy paper. Rough paper creates gaps in the graphite line, leading to inconsistent resistance.
  • Drawing Pressure: Apply firm, even pressure. You want a continuous, opaque layer of graphite. A single stroke is rarely enough; you will need to go over the same area 5-10 times.
  • Testing: Measure the resistance with a multimeter. A good sensor will have a resistance between 1 kΩ and 100 kΩ. If it reads in the megaohm range, the line is too thin or the paper is too rough.

Common Problems and How to Fix Them

Building a pencil sensor is easy, but getting a stable reading takes practice.

  • Unstable Baseline: The resistance drifts over time. This is usually caused by moisture in the paper. Baking the paper in an oven at 80°C for 10 minutes before drawing can help.
  • No Response: The sensor doesn’t react to the gas. This often means the gas concentration is too low, or the graphite layer is too thin. Try drawing a thicker layer or using a softer pencil.
  • Response is Not Reversible: The resistance doesn’t return to baseline. This indicates the gas is bonding too strongly to the graphite. The paper cannot be heated enough to desorb the gas, so the sensor may be saturated.
  • Contact Issues: The resistance is high at the edges where you connect the wires. Use silver paste or conductive epoxy to attach copper wires, rather than just pressing them onto the graphite.

Comparing Pencil Sensors to Commercial Sensors

Commercial gas sensors are typically made from metal oxides like tin dioxide (SnO₂) or tungsten trioxide (WO₃). These materials are far more sensitive and selective than graphite. They can detect parts-per-billion (ppb) levels, whereas pencil sensors are limited to ppm levels. Commercial sensors also operate at high temperatures (200-400°C) to speed up reactions, which makes them faster and more reliable. However, they require a heating element and a complex microfabrication process. The pencil sensor’s main advantages are cost (less than a cent per sensor), disposability, and ease of fabrication. It is not a replacement for industrial safety equipment, but it is an excellent educational tool and a viable option for low-cost, low-power environmental monitoring where extreme precision is not required.

Cost and Practical Considerations

The cost of a pencil sensor is negligible. A single pencil and a sheet of paper can produce hundreds of sensors. The only real cost is the measurement equipment, such as a multimeter or a microcontroller with an analog-to-digital converter. The sensor itself is also biodegradable and can be disposed of safely. The main practical limitation is the paper substrate. It is fragile, cannot withstand high temperatures, and absorbs moisture from the air, which can cause false readings. For a more durable sensor, researchers have drawn graphite onto other substrates like polyethylene terephthalate (PET) film or even glass, but these are harder to draw on.

Frequently Asked Questions

Can a regular No. 2 pencil work?

Yes, but it will be less sensitive. A No. 2 pencil is an HB grade, which is a middle ground between hard and soft. It contains a significant amount of clay binder, which is an insulator. You can still detect high concentrations of gas, but the baseline resistance will be higher and the signal-to-noise ratio will be worse than with a 6B pencil.

What gases can a pencil sensor detect?

Research has primarily demonstrated detection of nitrogen dioxide (NO₂) and ammonia (NH₃). It can also respond to volatile organic compounds (VOCs) like ethanol and acetone, but the response is weaker. It is not sensitive to oxygen or carbon dioxide at room temperature.

How long does a pencil-drawn sensor last?

If stored in a dry, sealed container, the sensor can last for months. The graphite itself does not degrade. However, the paper will absorb moisture, which can alter the baseline resistance. The sensor’s performance will also degrade if it is exposed to high concentrations of gas for long periods, as the gas molecules may not fully desorb.

Is this sensor safe to use?

Yes, for educational purposes. The sensor operates at room temperature, so there is no burn risk. The main safety concern is the gas you are testing. You should always test gases in a well-ventilated area or inside a fume hood, as the gases themselves can be hazardous.

Can a pencil sensor detect humidity?

Yes, indirectly. Water molecules in the air will adsorb onto the graphite and change its resistance. This is usually considered a negative side effect (a source of noise), but it does mean the sensor can be used as a simple hygrometer. The response to humidity is often larger than the response to many target gases, which is why controlling humidity is critical in experiments.

Related

Formula used
in t | Temperature | °C | 25 | 0
in r | Relative Humidity | % | 50 | 0
in g | Gas Concentration | ppm | 1 | 0
out r0 | Baseline Resistance | kΩ | 100 | 2
out dr | Resistance Change | % | (g * 0.5) | 2
out rn | New Resistance | kΩ | r0 * (1 + dr / 100) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.