no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)

Hi, I had tried to search from googling how to resolve this error and i can’t find the exact solution so I hope u guys could give a quick guide on how to solve this DS3231 error so I could carry on running my sketch for my project.

**Again the error message (**no matching function for call to ‘DS3231::DS3231(const uint8_t&, const uint8_t&)’ )

This is the exact Error message include when i try to run my sketch.

Arduino_Code:4:20: error: no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)'

 DS3231 rtc(SDA, SCL);

                    ^

In file included from C:\Users\tohwe\Desktop\School\FYP 2019\Document\Arduino_Code\Arduino_Code.ino:2:0:

C:\Users\tohwe\Documents\Arduino\libraries\arduino_316039/DS3231.h:64:3: note: candidate: DS3231::DS3231()

   DS3231();

   ^

C:\Users\tohwe\Documents\Arduino\libraries\arduino_316039/DS3231.h:64:3: note:   candidate expects 0 arguments, 2 provided

C:\Users\tohwe\Documents\Arduino\libraries\arduino_316039/DS3231.h:60:7: note: candidate: constexpr DS3231::DS3231(const DS3231&)

 class DS3231 {

       ^

C:\Users\tohwe\Documents\Arduino\libraries\arduino_316039/DS3231.h:60:7: note:   candidate expects 1 argument, 2 provided

C:\Users\tohwe\Documents\Arduino\libraries\arduino_316039/DS3231.h:60:7: note: candidate: constexpr DS3231::DS3231(DS3231&&)

C:\Users\tohwe\Documents\Arduino\libraries\arduino_316039/DS3231.h:60:7: note:   candidate expects 1 argument, 2 provided

Arduino_Code:5:1: error: 'Time' does not name a type

 Time t;

 ^

C:\Users\tohwe\Desktop\School\FYP 2019\Document\Arduino_Code\Arduino_Code.ino: In function 'void setup()':

Arduino_Code:80:8: error: 'class DS3231' has no member named 'begin'

    rtc.begin();

        ^

C:\Users\tohwe\Desktop\School\FYP 2019\Document\Arduino_Code\Arduino_Code.ino: In function 'void loop()':

Arduino_Code:101:12: error: 'Display' was not declared in this scope

    Display();

            ^

C:\Users\tohwe\Desktop\School\FYP 2019\Document\Arduino_Code\Arduino_Code.ino: In function 'void AutomaticLight()':

Arduino_Code:146:1: error: 't' was not declared in this scope

 t = rtc.getTime();

 ^

Arduino_Code:146:9: error: 'class DS3231' has no member named 'getTime'

 t = rtc.getTime();

         ^

Arduino_Code:154:1: error: a function-definition is not allowed here before '{' token

 {

 ^

Arduino_Code:158:1: error: a function-definition is not allowed here before '{' token

 {

 ^

Arduino_Code:166:1: error: a function-definition is not allowed here before '{' token

 {

 ^

Arduino_Code:185:1: error: expected '}' at end of input

 }

 ^

exit status 1
no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)'

Following is all of my project programme codings.

/****\RTC module DS3231\****/
#include <DS3231.h>

DS3231 rtc(SDA, SCL);
Time t;

/****\ESP8266 WiFi Module\****/

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial

#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>

char auth[] = "9mKKggS2xyGD3iWKrwp26PtsYhZ6K6FF";
char ssid[] = "Demons P30 Pro";
char pass[] = "RelaxCadet";


#include <SoftwareSerial.h>
SoftwareSerial EspSerial(3, 4); // RX, TX

#define ESP8266_BAUD 9600

ESP8266 wifi(&EspSerial);

BlynkTimer timer;

void myTimerEvent()
{
  Blynk.virtualWrite(V5, millis() / 1000);
}

/****\Light Sensor and RTC\****/
int Logic = 0, logicState = 0;
int Hours, Minutes;
const int relay = 5;        // relay pin
const int lightSensor = 7;  // light sensor pin

const int onHour  = 23;  // On Hours
const int onMin   = 25;  // On Minutes
const int offHour = 23;  // Off Hours 
const int offMin  = 30;  // off Minutes

/****\Distance Sensor\****/
int trigPin = 11;
int echoPin = 12;
int Led = 13;
long duration, distance;

/****\Sound Sensor\****/
const int interruptPin = A1;  // sound sensor pin
int sound = 0;

/****\\****/
unsigned long Millis, Millis2;


void setup()
{
   
   Serial.begin(9600);
   pinMode(relay, OUTPUT);
   digitalWrite(relay, HIGH);  // turn off the relay

   EspSerial.begin(ESP8266_BAUD);
   delay(10);
   Blynk.begin(auth, wifi, ssid, pass);
   timer.setInterval(1000L, myTimerEvent);
   
   pinMode(lightSensor, INPUT);
   pinMode(Led, OUTPUT);
   pinMode(trigPin, OUTPUT);
   pinMode(echoPin, INPUT);

   // Interruption for Clap switch
   pinMode(interruptPin, INPUT_PULLUP);
   attachInterrupt(digitalPinToInterrupt(interruptPin), SoundSensor, FALLING);
   
   rtc.begin();
//   rtc.setDOW();
//   rtc.setTime(23, 22, 00);     
//   rtc.setDate(23, 10, 2019);
}

void loop()
{
  
   // For ESP8266 WiFi module 
   Blynk.run();
   timer.run();

   // Automatic light function uses both RTC module and Light sensor 
   // to control the relay in specific time
   AutomaticLight();

   // Water level Indication
   Distance();

   // Display current values of sensors, modules and variables 
   Display();
   
     
}

void Distance()
{
    
  digitalWrite(trigPin,HIGH);
  delayMicroseconds(1000);
  digitalWrite(trigPin, LOW);
  duration = pulseIn(echoPin, HIGH);
  distance =(duration/2)/29.1;
//  Serial.print(distance);
//  Serial.println("CM");
//  delay(10); 
  
  if(distance >=22) 
  {
    digitalWrite(Led, LOW);
  }
  else
  {
    digitalWrite(Led, HIGH);
  }
  
}

void SoundSensor()
{
  
  if(millis()-Millis2 > 500){
    Millis2 = millis();
    analogWrite(relay, !analogRead(relay));
  }
  sound = 1;
  
}


void AutomaticLight()
{  

// light sensor and real time is used to control relay 

t = rtc.getTime();
   Hours = t.hour;
   Minutes = t.min;

int sensorPin = A0;

int sensorValue = 0;
void setup() 
{
Serial.begin(9600);
}
void loop() 
{
sensorValue = analogRead(sensorPin);
Serial.println(sensorValue);

delay(100);

}
void Display()
{
  if(millis() - Millis > 250){     // Print information in every 250 milliseconds
   Millis = millis(); 
   //Serial.print(analogRead(A0));
   Serial.println("Time: ");
   Serial.println(rtc.getTimeStr());
   Serial.println("  Relay: ");
   Serial.println(!analogRead(relay));
   Serial.println("  Automatic: ");
   Serial.println(Logic);
   Serial.println("  Light: ");
   Serial.println(!analogRead(lightSensor));
   Serial.println("  Sound: ");
   Serial.println(sound);
   Serial.println("  Distance(cm): ");
   Serial.println(distance);
   
   sound = 0;
  }
}

Moderator edit:
</mark> <mark>[code]</mark> <mark>

</mark> <mark>[/code]</mark> <mark>
tags added.

Change...

  DS3231 rtc(SDA, SCL);

..to...

  DS3231 rtc;