 
 /*==============|| SD ||==============*/
 const int chipSelect = 4;
+bool CD_STATE = 0;
 
 /*==============|| RFM69 ||==============*/
 RFM69 radio;

Payload data_rcv;

void setup() {
  Serial.begin(9600);
  rtc.begin();
  pinMode(10, OUTPUT);
  if(!SD.begin(chipSelect)) {
    Serial.println("Card failed, or not present");
    return;
  }
  Serial.println("card initialized");

  radio.initialize(FREQUENCY,NODEID,NETWORKID);
  radio.setHighPower(); //uncomment only for RFM69HW!
  radio.encrypt(KEY);
  Serial.println("Setup Done");
}

void loop() {

			radio.sendACK();
			if (ackCount++%3==0) delay(3); 
		}
		Blink(LED,100);
	}
}

