//SENSOR DHT22 CON ARDUINO
#include<LiquidCrystal_I2C.h>
#include<Wire.h>
#include <DHT.h>
#define dhtpin 2
#define dhtTipo DHT22
DHT dht(dhtpin,dhtTipo);
LiquidCrystal_I2C lcd(0x27,16,2);
void setup() {
// put your setup code here, to run once:
lcd.init();
lcd.backlight();
lcd.begin("Iniciando...");
dht.begin();
delay(1000);
}
void loop() {
// put your main code here, to run repeatedly:
float h=dht.readHumidity();
float t=dht.readTemperature();
lcd.begin(h);
lcd.begin(t);
}