Hello,
I'm new to Arduino and is still learning. I am trying to make a egg incubator.
I am at the part where i am trying to display the temperature on an LCD screen, but every time i try to run the code, it says "expected primary-expression before '.' token"
#include <LiquidCrystal.h>
#include <DHT.h>
int Contrast=20;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup()
{
analogWrite(6,Contrast);
lcd.begin(16, 2);
}
void loop()
{
lcd.setCursor(0, 0);
lcd.print("Brown Hatchery");
lcd.setCursor(0, 1);
lcd.print(DHT.humidity); //Showing humidity percentage
delay(1000);
lcd.clear();
delay(500);
lcd.setCursor(0, 0);
lcd.print("Test");
lcd.setCursor(0, 1);
lcd.print("test");
delay(1000);
lcd.clear();
delay(500);
lcd.clear();
}
Can anyone please help me?
Thanks.