xbee s2c coordinator in api 1 mode

hello, i am having issues with the receive code of the coordinator , i am transmitting correctly since i am receiving the data i need when i hook the xbee directly to the pc and open the xctu software , but i can’t seem to come up with a good receiving code

#include 
#include 
#include ;
#include  
#include 
OneWire oneWireA (2) ;
OneWire oneWireB (3) ;

DallasTemperature sensorsA (&oneWireA) ;
DallasTemperature sensorsB (&oneWireB) ;

XBee xbee = XBee();
XBeeAddress64 addr64 = XBeeAddress64(0x00000000, 0xFFFFFFFF); 
SoftwareSerial XBee(2,3); // RX, TX
 

void setup() {
 Serial.begin(9600);
 Serial.flush();
 XBee.begin(9600);
}
void loop() {
sensorsA.requestTemperatures();
int senv= analogRead(A1);  
int senv2= analogRead(A0);
    delay(1000);
    Serial.println(map (senv,1023,310,0,100));

     delay(1000);
    Serial.println(map (senv2,1023,310,0,100));

    delay(1000);
    Serial.println(sensorsA.getTempCByIndex(0));
    delay(1000);
    sensorsB.requestTemperatures();
    Serial.println(sensorsB.getTempCByIndex(0));
}

this is the Router code in AT mode , it transmits the data of 2 temperature sensors and 2 moisture sensors .

does anyone know a good receive code ? i really could use the help and thank you .

What are you using to receive the data on?

the title answers your question , it’s an xbee set as coordinator in api mode , i have solved the problem and got the project going i was thinking in time maybe id post a solution for all the people who experience the same problems as me.