Send data wireless using a bootloaded atmega328p on a breadboard and an XBee WF

Hi, I’m very new at using XBees. I am currently working on a project and have been stuck for a few days.

I have a accelerator connected to AD0-AD2, then once the data has been read I calibrate the numbers to fit what I need. I want to show the data, for example, “x=124g, y=90g” to xctu and xbee cloud kit using an XBee Wifi S6B.

The problem I’m having is if I have everything on serial it works perfectly, but when I change serial.print to xbee.print nothing shows up on my terminal. I made sure to declare SoftwareSerial XBee(2, 3); // RX, TX. I also want it to continue printing on my terminal when I remove the arduino and use a battery to power it up.

Please help! Thank you!