# Xbee3 ADC readings

**URL:** <https://forums.digi.com/t/xbee3-adc-readings/32046>\
**Category:** XBee & XBee Gateway\
**Tags:** xbee3\
**Created:** [August 6, 2024, 11:25pm UTC](https://forums.digi.com/t/xbee3-adc-readings/32046 "2024-08-06T23:25:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danceboidance](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@danceboidance](https://forums.digi.com/u/danceboidance)\
**Post date:** [August 6, 2024, 11:25pm UTC](https://forums.digi.com/t/xbee3-adc-readings/32046/1 "2024-08-06T23:25:47Z")

</div>

Hello,

I am trying to read an ADC signal sent from my XBee3 to my IX15. The signal is coming from the Ultrasonic Distance Sensor from Seeed, and it uses the XBee SMT Grove Development board. I have the cable connected from the sensor to the AD3 port of the board. The io\_configuration for line DIO3\_AD3 is set to ADC (although that gets set to PWM, as shown by get\_io\_configuration). When I use the read\_io\_sample method for remote devices on my ix15, I get a value of 0, 1 or 2, regardless of what the actual distance should be. Is there something I’m missing? I can’t seem to find any guides about how to use something like this.

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [August 7, 2024, 12:49pm UTC](https://forums.digi.com/t/xbee3-adc-readings/32046/2 "2024-08-07T12:49:03Z")

</div>

Sounds like you are using the wrong ADC / port. May I suggest you use port 1 with its ADC line instead.

---

<div class="post-metadata">

**Author:** ![danceboidance](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@danceboidance](https://forums.digi.com/u/danceboidance)\
**Post date:** [August 7, 2024, 4:04pm UTC](https://forums.digi.com/t/xbee3-adc-readings/32046/3 "2024-08-07T16:04:47Z")

</div>

That helped, I switched ports and got values of 1023 instead. I realize this is because the grove device provides voltages 3.3V-5V, not 0-3.3V which the ADC reading takes. Thanks for the help
