Issue #082 [New/open] - Integration of DHT11 Humidity sensors

Posted by chof258

I have programmed a sensor class for the DHT11 humidity sensor and probably other versions of the DHTXX family:

The sensor is utilizing a new C extension for python, to communicate with the hardware which I have included into the native section of the code.

It was tested on a raspberry pi model 2 and works fine

I also updated the sensor module and webpage to handle humidity data. Please feel free to try it and integrate it into your software

Kind regards

Christian

Files attached


Comment 1

Posted by trouch

Thanks you very much, but there is few issues :

WiringPi code is under LGPL license, incompatible with Apache WebIOPi licence https://www.apache.org/legal/resolved.html#category-x

So you should use gpio.c:pulseTS or inspire from it instead. But all GPIO native code is planned to be removed later.

A humidity sensor (HYT221) will be added shortly, and will provide a different mapping from your proposal


Comment 2

Posted by dwr4ever

I would very much like support for the DHT11


Comment 3

Posted by jlpetracca

Me too I want DHT11 too THANKS!


Comment 4

Posted by aschwar

I'd also like support for DHT11 and DHT22. Thank you.


Comment 5

Posted by NewFolk

Will be glad to see DHT11 and DHT22 support.


Comment 6

Posted by ropese362011

How ti install? Thanks


Comment 8

Posted by Russell.A.Turner

I'm getting an oops that page can't be found following the link provided above.


Comment 9

Posted by jo@raspython.org

Hey Russel, i'm sorry, try this one: https://www.raspython.org/measure-temperature-and-humidity-with-the-sensor-dht22-am2302/


Comment 10

Posted by Russell.A.Turner

Thanks that link worked