// put your setup code here, to run once:
// If you see errors or something popping up in code, it's probably because i didnt add the lcd and led to the model
//copy past it somehow k
#include <dht.h>
#include <LiquidCrystal_I2C.h>
#define dataPin 8
dht jeb;
int light = 5;
void setup() {
Serial.begin(9600);
pinMode(light, OUTPUT);
display.init();
display.clear();
display.blacklight();
}
void loop() {
// put your main code here, to run repeatedly:
int readData = jeb.read22(dataPin);
float t = jeb.temperature;
float h = jeb.humidity;
display.setCursor(0,0);
display.Print("Temperature:");
display.setCursor(11,0);
display.Print(t);
display.setCursor(0,1);
display.Print("Humidity:");
display.setCursor(10,1);
display.Print(h);
if (t > 28);
{
digitalWrite(light, HIGH);
delay(1000);
digitalWrite(light, LOW);
delay(1000);
}
else
{
digitalWrite(light, LOW);
}
}
delay(1000)
display.clear(); //no more