Hello, in this tutorial I’m using AM2320 (DHT 12 ??) temperature and humidity sensor with Arduino UNO board, this sensor is sold by Adafruit just like the DHT11 and DHT22, same design but this module has an i2c bus, with a 0 – 99% RH ±3 and -40° – 80°C ±0.5 in humidity/temperature range.
You may find a name confusion, a lot of sellers tell that AM2320 is DHT12 but I looked after making the video and found may be DHT12 is a separate product (blue) correct me if I’m wrong.
Here’s the datasheet.
But as usual I bought a cheap chinese version because they’re widely available, and this version doesn’t work with Adafruit library and doesn’t even get detected by the i2c scanner code (it worked but not well for one or two single times then lost the detection, usually the i2c scanner works well and detects everytime), tried few libraries until I found one.
And don’t forget I’m using the module version which has a pull-up resistor, you can add it if you want.
-So the library that worked for me is this one: Download, you can try the official one it may work …
-Lcd i2c library: Download
-I2c scanner: Download
-The first code I tried which reads the data from the sensor and display it on the serial monitor is just from the example in the library.
-The second code which works with LCD i2c screen you can download it here.
If there’s a problem, contact me.
Automation and Electrical Engineer, Electronics amateur trying to share my little projects.