Simple library for the DHT11 temperature and humidity sensor. Forked from an existing Mbed DHT11 project.

Dependents:   UoY-DHT11-test

You are viewing an older revision! See the latest version

Homepage

Example usage:

Example usage

#include "mbed.h"
#include "DHT11.h"

DHT11 dht(D8); // Here fill your PIN mask/name

main()
{
    printf("T:%d, H:%d\r\n", dht.readTemperature(), dht.readHumidity());
}

Please note that this project has been modified only enough to make it work for its intended purpose. Various parts of this project still need work, and the source code should not be seen as an example of best practice.


All wikipages