My receiver xbee is receiving data even if the transmitter is disconnected , so if i am sending the string hello world , the receiver will repeat this string .
void loop() {
Serial.println("Hello");
delay(1000);
}
void loop() {
if(Serial.available()>0){
Serial.print((char)Serial.read());
}
}