pir and center console xbee HELP

hi, I am trying to get 2 XBee’s to communicate with each other the value of PIR sensor. my pir section is working and my XBee’s are communicating when I looked at them in xctu. but my Xbee is doing nothing to send the data across when it is on the Arduino.pls, help.(ps I am a newbie to this).

PIR(TRANSMITTER)

#include <SoftwareSerial.h>
#include <XBee.h>

//Reads and analog sensor and displays the value
int sensePin = A0;
int ledPin = 9;
SoftwareSerial XBee(0,1);// pins of xbee(RX,TX)
void setup()
{
//We don’t need to specifiy sensor Pin as an input, since it defaults to that when we read it

//This is the default value, but we can set it anyways
analogReference(DEFAULT); //5V Reference on UNO

pinMode (ledPin,OUTPUT);//Setting the led pin as a output
pinMode(1,OUTPUT);
pinMode(0,INPUT);
//Allows us to listen to serial communications from the arduino
Serial.begin(9600);
XBee.begin(9600);
}

void loop()
{
int val = analogRead(sensePin);//telling the arduino to read the value of the sensor
if (millis()>41000){

if (val > 500)
{
digitalWrite (ledPin,HIGH);
digitalWrite (1,HIGH);

}
else
{
digitalWrite (ledPin,LOW);
digitalWrite (1,LOW);
}
delay (50);
}
}

CENTER console(Reciever)

#include <SoftwareSerial.h>
#include <XBee.h>

SoftwareSerial XBee(0,1);// pins of xbee(RX,TX)
//Define Pins
int ledPin = 9;
int data = 0;
void setup()
{
//Start Serial
Serial.begin(9600);
pinMode (ledPin,OUTPUT);
pinMode(1,OUTPUT);
pinMode(data,INPUT);
XBee.begin(9600);
}

void loop(){

if (XBee.available()> 0);
{
digitalRead(data);

if(data ,HIGH)
{
digitalWrite(9,HIGH);

}

if (data ,LOW){
digitalWrite(9,LOW);

}

}
}

there is also a systems diagram attached

Scan 1.pdf (194 KB)