More Information
- A 1-Wire Humidity Sensor (DOC)
- A 1-Wire Humidity Sensor (PDF)
- I2C Humidity Monitoring on the Raspberry Pi
- 1-Wire Humidity Monitoring on the Raspberry Pi
First published: 17th July 2013
I've been using DS18S20 temperature sensors to monitor a warehouse for years using a PIC microcontroller. However, after receiving my raspberry pi, I was asked about humidity monitoring. A few searches later, I had found quite a few different sensors at a range of prices:
Description | price (HK$) | Interface Type | Manufacturer |
---|---|---|---|
CHS-MSS | 175.50 | voltage | TDK |
BASIC I2C-G | 709.90 | I2C | Digipicco |
HCH-1000-001 | 31.90 | capacitive | Honeywell |
HCH-1000-002 | 32.60 | capacitive | Honeywell |
HCZ-D5-A | 27.90 | impedance | Multicomp |
HCZ-D5-B | 13.00 | impedance | Multicomp |
HCZ-H8-A | 15.30 | impedance | Multicomp |
HCZ-H8-B | 10.70 | impedance | Multicomp |
HIH-4000-001 | 191.90 | voltage | Honeywell |
HIH-4000-002 | 191.90 | voltage | Honeywell |
HIH-4010-001 | 159.00 | voltage | Honeywell |
HIH-4030-001 | 101.70 | voltage | Honeywell |
HIH-4031-001 | 130.30 | voltage | Honeywell |
HIH-5030-001 | 50.20 | voltage | Honeywell |
HIH-6120-021-001 | 39.90 | I2C | Honeywell |
HIH-3605 | voltage | Honeywell | |
DS1923 | 663.00 | 1-Wire | Dallas |
(prices are for comparison only)
As I wanted to store the readings in a database, a digital input would be most convenient. As I already have a 1-wire bus for the RPi, the DS1923 is the obvious choice, until you notice the price and that it is a logging device, with an internal lithium battery, so it has a limited lifespan. Great for initialising, sealing into the environment to be recorded (a shipping container or cellar, perhaps) and retrieving weeks or months later, but not so good for continuous, live monitoring.
The capacitive and impedance devices are generally cheap, but the design of a cheap, reliable circuit to convert that to digital is a bit beyond my rudimentary electronics knowledge. That seemed to leave the HIH-6120-021-001 with its I2C interface. But then I found a useful article by Dan Awtrey that connects a HIH-3605 humidity sensor to a DS2438 1-wire device. Now (as you can see from the table above) I couldn't find a source for the HIH-3605, but surely the same method would work with any of Honeywell's voltage-output humidity sensors, if the voltages were within range?
I decided to try humidity sensing on the RPi using both the I2C bus and the 1-Wire bus.