Arduino Luftfeuchtigkeit loggen fehler

Hallo,
ich habe ein Programmcode von folgender Seite.

Leider funktioniert der Code nicht. Ich bekomme immer die Fehlermeldung.

Feuchte_2:50:23: error: expected primary-expression before ‘.’ token

dataFile.print(dht.temperature); //Store date on SD card

^

Feuchte_2:53:23: error: expected primary-expression before ‘.’ token

dataFile.print(dht.humidity); //Store date on SD card

^

D:\Dokumente\Projekte\Feuchte_2\Feuchte_2.ino: In function ‘void Read_DHT11()’:

Feuchte_2:96:16: error: expected primary-expression before ‘.’ token

int chk = dht.read11(DHT11_PIN);

^

exit status 1

expected primary-expression before ‘.’ token

Ist das der Fehler ?

#define dht DHT //Sensor object named as DHT

Hier der Code

#include <DS3231.h> //Library for RTC module (Download from Link in article)
#include <SPI.h> //Library for SPI communication (Pre-Loaded into Arduino)
#include <SD.h> //Library for SD card (Pre-Loaded into Arduino)
#include <DHT.h> //Library for dht11 Temperature and Humidity sensor (Download from Link in article)

#define DHT11_PIN 2  
#define dht DHT //Sensor object named as DHT

const int chipSelect = 4; //SD card CS pin connected to pin 4 of Arduino

// Init the DS3231 using the hardware interface
DS3231  rtc(SDA, SCL);

void setup()
{
  // Setup Serial connection
  Serial.begin(9600);
  Initialize_SDcard();
  Initialize_RTC();
}

void loop()
{
  Read_DHT11();
  Write_SDcard();
  delay(5000); //Wait for 5 seconds before writing the next data 
}

void Write_SDcard()
{
    // open the file. note that only one file can be open at a time,
  // so you have to close this one before opening another.
  File dataFile = SD.open("LoggerCD.txt", FILE_WRITE);

  // if the file is available, write to it:
  if (dataFile) {
    dataFile.print(rtc.getDateStr()); //Store date on SD card
    dataFile.print(","); //Move to next column using a ","

    dataFile.print(rtc.getTimeStr()); //Store date on SD card
    dataFile.print(","); //Move to next column using a ","

    dataFile.print(DHT.temperature); //Store date on SD card
    dataFile.print(","); //Move to next column using a ","

    dataFile.print(DHT.humidity); //Store date on SD card
    dataFile.print(","); //Move to next column using a ","

    dataFile.println(); //End of Row move to next row
    dataFile.close(); //Close the file
  }
  else
  Serial.println("OOPS!! SD card writing failed");
}

void Initialize_SDcard()
{
  // see if the card is present and can be initialized:
  if (!SD.begin(chipSelect)) {
    Serial.println("Card failed, or not present");
    // don't do anything more:
    return;
  }
   // open the file. note that only one file can be open at a time,
  // so you have to close this one before opening another.
  File dataFile = SD.open("LoggerCD.txt", FILE_WRITE);
  // if the file is available, write to it:
  if (dataFile) {
    dataFile.println("Date,Time,Temperature,Humidity"); //Write the first row of the excel file
    dataFile.close();
  }
}

void Initialize_RTC()
{
   // Initialize the rtc object
  rtc.begin();

//#### The following lines can be uncommented to set the date and time for the first time###  
/*
rtc.setDOW(FRIDAY);     // Set Day-of-Week to SUNDAY
rtc.setTime(18, 46, 45);     // Set the time to 12:00:00 (24hr format)
rtc.setDate(6, 30, 2017);   // Set the date to January 1st, 2014 
*/
}

void Read_DHT11()
{
  int chk = DHT.read11(DHT11_PIN);
}

/*void Read_DateTime()
{  
  // Send date
  Serial.print(rtc.getDateStr());
  Serial.print(" -- ");

  // Send time
  Serial.println(rtc.getTimeStr());
}*/

/*void Read_TempHum()
{
  Serial.print("Temperature = ");
  Serial.println(DHT.temperature);
  Serial.print("Humidity = ");
  Serial.println(DHT.humidity);
 // delay(1000);
}*/

Vielen Dank für eure Hilfe.

(deleted)

skreck:
Ist das der Fehler ?

#define dht DHT //Sensor object named as DHT

Ja.

Ok Danke