You can Subscribe on YouTube by clicking this link to show your support and be updated with the latest video on the channel like this.



This video around raspberry pi showing how to interface DHT12 humidity and temperature sensor with raspberry pi by using JAVA nad Pi4j. DHT12 its a temperature sensor with a 1-Wire and I2C interface to connect with external controllers and having 1-Wire interface makes it compatible with the older DHT 11 sensor but with a higher accuracy. For this tutorial, we are going to use the I2C interface of the sensor and to interact with it, we will be using JAVA. One issue with the DHT12 I2C interface is that the device address is not changeable which limits the multiple sensor interfacing to the same I2C bus as we can't have diff address for each sensor.



Intro Video Credit:


DHT11 with Raspberry Pi using JAVA:

Github Repo:



Download Pi4J Library:

JAVA Application on Raspberry Pi:

DHT12 Datasheet:


Java Application on Pi Playlist:


Catch Me On: