 uint8_t sleep_period = 2;       // the sleep interval in minutes between 2 consecutive alarms
 
 int lastSec, lastMin, lastHr;
+int retryForSD=0;
 
 Timer t;
 int x = 0;
  
-int breaker = 0;
-
 char streamBuffer[250];
 
 int exc=0;

	
	char Ctimestamp[12] = "";
            
	for (i=0; i<11; i++){
		Ctimestamp[i]= timestamp[i];
	}
            
	Serial.println(Ctimestamp);
    
	while ( globalChecker == 0 ) {
		t.update();
		customDue.listen();
		//customDue.flush();
		//streamBuffer= "";	
		for (i=0; i<250; i++) streamBuffer[i]=0x00;
     
		Serial.println(F("CD is available"));


	Serial.println(F("No data from Senslope"));
	streamBuffer[0] = '\0';
	strcpy(streamBuffer,">>#NODATAFROMSENSLOPE<<");
	sendMessage();
	customDue.write("OK");
	digitalWrite(trigForDue, LOW);
	t.stop(x);
	globalChecker = 1;
	return;
}
