Hello ;D ;D
I am making a project for assessment but, there is a problem that I encountered. Board error occurred. I’ve tried replacing the syntax used but it’s the same
But according to my analysis, this error occurs when I try to input coding for LCD with I2C
can someone help me?
forgive me for bad english
DHT 11 to LCD I2C
#include <DHT.h>
#include <LiquidCrystal_I2C.h>
#define DHTPin 2 //define DHT pin
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
DHT dht;
void setup() {
dht.setup(DHTPin);
lcd.begin(16,2);
void loop() {
float temp = dht.getTemperature();
float humi = dht.getHumidity();
lcd.setCursor(0,0);
lcd.print(“Temp: “);
lcd.print(temp);
lcd.print(” C”);
lcd.setCursor(0,1);
lcd.print(“Humi: “);
lcd.print(humi);
lcd.print(” %”);
delay(2000);
}