Adventures with Arduino Part 11

 

Project 31 in the Arduino project handbook is a Weather station using the DHT-11 temperature / humidity sensor.   This project is a little more involved as it requires you to download the library for the dht11 and install it so that the Arduino IDE can find and load it.

The project works really well, however the 2nd line displaying the temperature does seem to flicker.  But this is not too much of an issue.   The temperature is also in Fahrenheit but I think this is easy to fix.

Code block and more information can be found here.

I would suspect the code in this section may be hackable to change to Centigrade and also fix the flickering, perhaps adding a delay somewhere.

void loop() {
   float h = dht.readHumidity();
  float t = dht.readTemperature();
  t = t* 9/5 + 32;
    if (isnan(t) || isnan(h)) {

I will look at this later and perhaps create a follow up blog post on this.

Hopefully I can refine in time for the next Pi jam in September.