# ADC polling for XB

**URL:** <https://forums.digi.com/t/adc-polling-for-xb/2826>\
**Category:** Python\
**Created:** [April 23, 2012, 7:30pm UTC](https://forums.digi.com/t/adc-polling-for-xb/2826 "2012-04-23T19:30:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eminthepooh](https://avatars.discourse-cdn.com/v4/letter/e/ccd318/32.png) [@eminthepooh](https://forums.digi.com/u/eminthepooh)\
**Post date:** [April 23, 2012, 7:30pm UTC](https://forums.digi.com/t/adc-polling-for-xb/2826/1 "2012-04-23T19:30:42Z")

</div>

Hey guys, I’m using an X2 to talk to an XB. The network is digimesh 2.4 Gig  
Can anyone point me to python scripts that return a specific XB’s ADC info? I’ve already configured the specific pin I want it to monitor to an analog input, now I just need to get that data back to my X2.  
The tech support guy said this code exists but I’ve had no luck looking.

I’m a student at USC and would really appreciate the help  
Thank you!

---

<div class="post-metadata">

**Author:** ![lynnl](https://avatars.discourse-cdn.com/v4/letter/l/22d042/32.png) [@lynnl](https://forums.digi.com/u/lynnl)\
**Post date:** [April 24, 2012, 3:31pm UTC](https://forums.digi.com/t/adc-polling-for-xb/2826/2 "2012-04-24T15:31:27Z")

</div>

What happens when you send the “IS” command? The Xbee should return a binary string listed the various ‘I/O’ values for the digital and analogs. The manual shows how to parse.
