Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

Simple Arduino code to read HIH8121 Temp/Humidity sensor

$
0
0
@Davor Predavec (and anyone else who might be interested).

The code below is translated from the D2000 (from https://www.allaboutcircuits.com/projects/how-to-check-and-calibrate-a-humidity-sensor/) to an Arduino and will simply read and print the temperature and humidity. For use with the 5V Arduino, I modified the schematic slightly - changing the pull ups and connection names from the 3.3V D2000 (see below).
View attachment 157650

Code (C):
  1.  
  2. /*...
Simple Arduino code to read HIH8121 Temp/Humidity sensor

Viewing all articles
Browse latest Browse all 4923