It doesn't seem to need to sniff very deeply. You have the signals on the serial port ,i.e. hardware serial, which is shared with the serial monitor on the USB port. I assume you uploaded the programme with the XBee disconnected, and therefore did not have a problem.