I have rigged up a basic circuit as follows:
The XBee is a Pro, series 2. It is configured as a Router using the AT firmware. Pin 20 (D0) is configured as an analog input. There is a co-ordinator XBee running the Co-ordinator API firmware.
When I measure the TMP36 using a multimeter, I can see a voltage of 0.752. However, the XBee is returning values of around 30 at the same time. I have a basic Python script (using the XBee Python API) running that grabs the data and outputs it as follows:
packet = xbee.wait_read_frame()
print 'Temp: ' + str(packet)
This is displaying the value of 30 on screen. Am I missing something obvious?