# how to assign the analog value of xbee to channel in esp for python

**URL:** <https://forums.digi.com/t/how-to-assign-the-analog-value-of-xbee-to-channel-in-esp-for-python/18011>\
**Category:** Python\
**Tags:** gateway, python\
**Created:** [February 8, 2017, 7:47am UTC](https://forums.digi.com/t/how-to-assign-the-analog-value-of-xbee-to-channel-in-esp-for-python/18011 "2017-02-08T07:47:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![csreddy](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@csreddy](https://forums.digi.com/u/csreddy)\
**Post date:** [February 8, 2017, 7:47am UTC](https://forums.digi.com/t/how-to-assign-the-analog-value-of-xbee-to-channel-in-esp-for-python/18011/1 "2017-02-08T07:47:17Z")

</div>

Hi,

can any one explain how to write the code for the assigning the analog values of different sensor nodes to different channel in DIGI esp for python.

where i need to edit the code for adding the more channels to the my application in the xbee sensor DIA sample code.

---

<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:** [February 9, 2017, 11:59am UTC](https://forums.digi.com/t/how-to-assign-the-analog-value-of-xbee-to-channel-in-esp-for-python/18011/2 "2017-02-09T11:59:34Z")

</div>

If you use the XBee Analog Sensor Adapter for the Dia found in the Python ESP, it shows you the channels you can adjust. This is done using the YML file.
