Community
cancel
Showing results for 
Search instead for 
Did you mean: 
hmuja
Beginner
944 Views

How to read temperature and humidity data from DHT22 sensor using python

Jump to solution

Hi,

I am new to programming with intel edison and trying to configure temperature sensor to read temperature and humidity values. I am using intel edison with arduino expansion board. I have configured DHT22 sensor on digital pin 2.

Is there any example to read this data using python?

Thanks

0 Kudos
1 Solution
idata
Community Manager
70 Views

Hi mujadid,

 

 

Unfortunately there aren't example codes in Python for this sensor. Actually, this sensor doesn't work well on Edison because the Edison's IO cannot switch fast enough between input/output. If you still want to try using this sensor I recommend you to check the following threads, although there aren't Python examples for it: Note that some of these threads are about the Galileo board however, the timing issue with the IOs is the same for Galileo and Edison.

 

 

On the other hand, if you want to explore the use of other temperature sensors with Python, I recommend you to check the UPM repository in the following site: https://github.com/intel-iot-devkit/upm https://github.com/intel-iot-devkit/upm. There are many examples for Python in the following site: https://github.com/intel-iot-devkit/upm/tree/master/examples/python https://github.com/intel-iot-devkit/upm/tree/master/examples/python, and a list of supported sensors can be checked in this site: http://iotdk.intel.com/docs/master/upm/modules.html http://iotdk.intel.com/docs/master/upm/modules.html

 

 

Hope you find it useful.

 

 

Regards,

 

Diego

View solution in original post

1 Reply
idata
Community Manager
71 Views

Hi mujadid,

 

 

Unfortunately there aren't example codes in Python for this sensor. Actually, this sensor doesn't work well on Edison because the Edison's IO cannot switch fast enough between input/output. If you still want to try using this sensor I recommend you to check the following threads, although there aren't Python examples for it: Note that some of these threads are about the Galileo board however, the timing issue with the IOs is the same for Galileo and Edison.

 

 

On the other hand, if you want to explore the use of other temperature sensors with Python, I recommend you to check the UPM repository in the following site: https://github.com/intel-iot-devkit/upm https://github.com/intel-iot-devkit/upm. There are many examples for Python in the following site: https://github.com/intel-iot-devkit/upm/tree/master/examples/python https://github.com/intel-iot-devkit/upm/tree/master/examples/python, and a list of supported sensors can be checked in this site: http://iotdk.intel.com/docs/master/upm/modules.html http://iotdk.intel.com/docs/master/upm/modules.html

 

 

Hope you find it useful.

 

 

Regards,

 

Diego

View solution in original post

Reply