When using the XBee’s ADC analog in, you must also have a VREF input on pin 14.