ReRenamed it.
Edit: Still the same error.
#include <LiquidCrystal.h>
#include <dht.h>
#include <Time.h>
#include <Wire.h>
#include <DS1307RTC.h>
#define lcd LiquidCrystal
#define Sensor DHT
int DHT11_PIN = 2;
unsigned int DHTcheck = 0;
int RSPin = 6;
int EnablePin = 7;
int DS4 = 9;
int DS5 = 10;
int DS6 = 11;
int DS7 = 12;
int LCDColumns = 16;
int LCDRows = 2;
long LastCheck = 0;
const long interval = 1800000;
void setup ()
{
LiquidCrystal lcd(RSPin, EnablePin, DS4, DS5, DS6, DS7);
lcd.begin(LCDColumns, LCDRows); //Configure the LCD
setSyncProvider(RTC.get); //Declare RTC as time data source
}
void loop()
{
digitalClockDisplay();
DHTsensor();
}
void digitalClockDisplay () {
lcd.setCursor(0, 0);
lcd.print(hour());
lcd.print(":");
lcd.print(minute());
lcd.setCursor(6, 0);
lcd.print(day());
lcd.print(".");
lcd.print(month());
lcd.print(".");
lcd.print(year());
}
void DHTsensor () {
unsigned long CurrentTime = millis();
if (CurrentTime - LastCheck >= interval) {
LastCheck = CurrentTime;
DHTcheck = Sensor.read11(DHT11_PIN);
}
lcd.setCursor(0, 1);
lcd.print("H:");
lcd.print(Sensor.humidity, 1);
lcd.setCursor(9, 1);
lcd.print("T:");
lcd.print(Sensor.temperature, 1);
}