# Xbee id in ir sampling

**URL:** <https://forums.digi.com/t/xbee-id-in-ir-sampling/22752>\
**Category:** XBee - 802.15.4\
**Tags:** node-identifier, xbee3\
**Created:** [October 22, 2021, 8:11am UTC](https://forums.digi.com/t/xbee-id-in-ir-sampling/22752 "2021-10-22T08:11:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ezpzlmnsqzy](https://avatars.discourse-cdn.com/v4/letter/e/57b2e6/32.png) [@ezpzlmnsqzy](https://forums.digi.com/u/ezpzlmnsqzy)\
**Post date:** [October 22, 2021, 8:11am UTC](https://forums.digi.com/t/xbee-id-in-ir-sampling/22752/1 "2021-10-22T08:11:06Z")

</div>

Hello everyone,

I have two sensors connected to the adc inputs on two different xbee 3s. Each xbee is sending the adc value to an xbee connected to an arduino mega. Everything works fine except that I can not figure out how to identify which packet is coming from which xbee/sensor. I figured out how to get the adc data using this page and other forums but can not seem to do the same for any id parameter. Any help would be appreciated!

[https://www.digi.com/resources/documentation/Digidocs/90002002/Reference/r\_frame\_0x95.htm](https://www.digi.com/resources/documentation/Digidocs/90002002/Reference/r_frame_0x95.htm)

---

<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:** [October 25, 2021, 12:22pm UTC](https://forums.digi.com/t/xbee-id-in-ir-sampling/22752/2 "2021-10-25T12:22:38Z")

</div>

Each of the XBee modules have a different MAC address. That MAC address is included in each packet received. You will need to look at your Arduino code as to where it is pulling the sensor data out of the Payload portion of the XBee modules API frame and add into that code the ability to pull that MAC address as well.
