808H5V5 Humidity Sensor

Overview

808H5V5 humidity sensor measures relative humidity in the range of 0 to 100% with accuracy better than 4% when relative humidity (RH) is between 30% and 80%. It operates from a 5V DC supply and typically draws 0.38mA. It has a three-pin interface with 2.54mm pin spacing, making it compatible with typical breadboards and prototyping boards. By measuring its output voltage, you can determine the relative humidity of the sensor's environment.

Documentation for this humidity sensor is available here.

Connecting to Arduino

808H5V5 Humidity sensor has the pins marked - V +. Wired as follows:

808H5V5 Sensor Pins Arduino Pins
- GND
V A0
+ 5V

Code example

/********************
 *  Program:  808H5V5 sensor tester
 *  http://www.cooking-hacks.com/skin/frontend/default/cooking/pdf/Humedad-808H5V5.pdf
 ********************/

float hum = 0;
float voltage = 0;
float percentRH = 0;

void setup() {
// to run once
Serial.begin(38400); // Initialize the serial port
}

void loop() {
hum = analogRead(0); // Read voltage coming from sensor (value will be between 0-1023)
voltage = hum * 5.0 / 1024.0; // Translate value into a voltage value
percentRH = (voltage - 0.788) / 0.0314; // Translate voltage into percent relative humidity

Serial.print("Read value is ");
Serial.print(hum);
Serial.print(".   Output voltage is ");
Serial.print(voltage);
Serial.print(" .    %RH = ");
Serial.println(percentRH,DEC); 
delay(2000);
}

The raw source of the sketch example is visible here.

Enjoy!