# Send data from XBee Sensor to Device Cloud

**URL:** <https://forums.digi.com/t/send-data-from-xbee-sensor-to-device-cloud/17808>\
**Category:** Python\
**Tags:** sensor, xbee-gateway, gateway, xbee\
**Created:** [December 21, 2016, 10:52am UTC](https://forums.digi.com/t/send-data-from-xbee-sensor-to-device-cloud/17808 "2016-12-21T10:52:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter.storey](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@peter.storey](https://forums.digi.com/u/peter.storey)\
**Post date:** [December 21, 2016, 10:52am UTC](https://forums.digi.com/t/send-data-from-xbee-sensor-to-device-cloud/17808/1 "2016-12-21T10:52:25Z")

</div>

I have connected my XBee (light, humidity and temperature) sensor to the Device Cloud via an XBee Gateway, but couldn’t work out how to read data into my dashboard. I’m told I need to write a python script to do this, but it must such a standard thing to need to do - surely EVERYONE needs to do this?

Is there a python script that already exists for reading data from the XBee sensor and sending it to the Device Cloud? Or, indeed, should I be doing something different?

For clarity, my devices are:  
X2E-Z3C-E1-W XBee Gateway  
XS-Z16-CB2R XBee Sensor

Thanks!

---

<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:** [December 21, 2016, 11:07am UTC](https://forums.digi.com/t/send-data-from-xbee-sensor-to-device-cloud/17808/2 "2016-12-21T11:07:13Z")

</div>

I believe the XBGW.py app that is one of the samples in the Digi ESP for Python will do what you want.

---

<div class="post-metadata">

**Author:** ![peter.storey](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@peter.storey](https://forums.digi.com/u/peter.storey)\
**Post date:** [December 23, 2016, 11:26am UTC](https://forums.digi.com/t/send-data-from-xbee-sensor-to-device-cloud/17808/3 "2016-12-23T11:26:12Z")

</div>

I figured out how to connect to the device cloud in ESP using EDP Upload.

I’m now getting two Errors -

1. Error building Project
2. Error executing script: IOError: [Errno 13] Permission denied: ‘zip\_build\_date.py’

Any idea what these are?

---

<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:** [December 23, 2016, 1:07pm UTC](https://forums.digi.com/t/send-data-from-xbee-sensor-to-device-cloud/17808/4 "2016-12-23T13:07:50Z")

</div>

Are you running Linux?
