Raspberry Pi based Temperature and Humidity logger

Introduction DHT11 sensor measures and provides humidity and temperature values serially over a single wire. It can measure the relative humidity in percentage (20 to 90% RH) and temperature in degree Celsius in the range of 0 to 50°C. It has 4 pins; one of which is used for data communication in serial form. Pulses of different TON and TOFF are decoded as logic 1 or logic 0 or start pulse or end of a frame. Interfacing diagram DHT11 Interfacing with Raspberry Pi 3 Example Here, we are going to interface the DHT11 sensor with Raspberry Pi 3 and display Humidity and Temperature on the terminal. We will be using the DHT Sensor Python library by Adafruit from GitHub. The Adafruit Python DHT Sensor library is created to read the Humidity and Temperature on raspberry Pi or Beaglebone Black. It is developed for DHT series sensors like DHT11, DHT22 or AM2302. Download Adafruit DHT Sensor library from here. Extract the …