The sys admin's daily grind – Airsensor

Exactly How Smelly?

Article from Issue 197/2017
Author(s):

If the air in a room smells stale, somebody will get up and open the window to let in some fresh air. Charly, however, wanted to measure its exact staleness, so he set off to find out armed with USB hardware and Linux.

Stale air results from the accumulation of various gases in an enclosed room. Carbon dioxide is the classic case – just imagine 16 people in a small, windowless conference room. Add to this, a mixture of volatile organic compounds, known to the world of science as VOCs. Among other things VOCs are alcohols, volatile deodorant components, aldehydes from furniture, detergent fumes, nicotine, briefly: carbon-based emissions of all kinds.

You could use human noses to sniff VOCs, but sensors in the form of a USB stick are not only more suitable but also immune to attacks of nausea. The Rehau sniffer [1], for example, uses an LED with a color changer to indicate the state of the air in the room.

Pure Air

A tool helps me to read the measured values from the stick. Before you build the software [2], you first need to install the libusb-dev and build-essential packages. After unpacking the zip file to /usr/local/, the change directory to usb-sensors-linux/trunk/airsensor/. When you get there, do this:

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Charly's Column – Dnstop

    In last month's issue, Charly sent the lean pdnsd DNS cache down the catwalk. To see whether pdnsd really does the work expected of it, he now puts dnstop through infinite rounds in the name of names.

  • Charly's Column – Reverse SSH Tunnel

    This month, Charly Kühnast draws attention to a widely unknown weather phenomenon: The instability of rarely used tunnels leading to a Raspberry Pi. Read on for greater insights.

  • Charly's Column – Searx

    It goes against the economic rationale to assume that commercial search engines have the best interests of users at heart when it comes to data protection and use. Sys admin Charly has found an alternative.

  • Charly's Column – Mi Flora

    Columnist Charly Kühnast recently attached Mi Flora humidity sensors to his potted plants. At first, they only transmitted junk on Bluetooth, but armed with the right tools and a Rasp Pi, Charly now reaps a rich harvest of data.

  • Charly's Column – paping

    Like every sys admin, Charly occasionally throws a pebble at a machine to see if it is still alive. If the other end does not respond to the ping, that does not always mean it's dead. Maybe the pebble just missed.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News