expected primary-expression before '.' token problem

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.

You are referencing "DHT.humidity", but "DHT" isn't declared as an object anywhere.

FYI: Next time please post the entire error text. It helps those who are trying to help you.

Where do you declare a DHT object? Look at the examples that come with your DHT library to see how to declare a DHT object.

Int he future please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.