#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <DHT22.h> //include the library code:
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
#define DHT22_PIN 3 //Define DHT11 to digital port 3
DHT22 dht(DHT22_PIN);
void setup(){
lcd.init(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
}
void loop(){
// READ DATA
lcd.setCursor(0,0);
lcd.print("Feucht:");
lcd.setCursor(9,0);
lcd.print(dht.getHumidity());
lcd.setCursor(0,1);
lcd.print("Temp.:");
lcd.setCursor(9,1);
lcd.print(dht.getTemperature());
delay(200);
}