So instead of repeating all of that here, check out How to Set Up the DHT11 Humidity Sensor on an Arduino, then come back for the specifics on setting it up on the Raspberry Pi.īut just to quickly summarize… The DHT11 has a surface mounted NTC thermistor and a resistive humidity sensor. We have another tutorial on the DHT11 for the Arduino that goes into detail on relative humidity and how the DHT11 measures it.
Then I’ll give you some example programs for programming it with either C or Python. In this tutorial, I’ll show you how to connect the DHT11 to the Raspberry Pi and output the humidity and temperature readings to an SSH terminal or to an LCD. Programming the DHT11 and connecting it to a Raspberry Pi is pretty simple too.