dual DHT11, strange results from DHT.h library

The idea is to let an UNO decide ventilating with outside air can lower humidity in a shower booth. I used two DHT11 sensors in a simple sketch for test purposes.

[code]
#include "DHT.h"
#define DHT1PIN 15
#define DHT2PIN 16
#define DHT1TYPE DHT11
#define DHT2TYPE DHT11
DHT dht1(DHT1PIN, DHT1TYPE);
DHT dht2(DHT2PIN, DHT2TYPE);

void setup() {
  Serial.begin(9600);
  Serial.println ("DHT11 dual test!");
  dht1.begin();
  dht2.begin();
}

void loop() {
  delay (1000);
  float h1 = dht1.readHumidity();
  float t1 = dht1.readTemperature();
  float h2 = dht2.readHumidity();
  float t2 = dht2.readTemperature();


  if (isnan(t1) || isnan(h1)) {
    Serial.println ("Failed to read from DHT #1");
  } else {
    Serial.print ("humidity 1");
    Serial.print (h1);
    Serial.print (" %\t");
    Serial.print ("Temperature 1");
    Serial.print (t1);
    Serial.println (" *C");
  }
  if (isnan(t2) || isnan(h2)) {
    Serial.println ("Failed to read from DHT #2");
  } else {
    Serial.print ("humidity 2");
    Serial.print (h2);
    Serial.print (" %\t");
    Serial.print ("Temperature 2");
    Serial.print (t2);
    Serial.println (" *C");
  }
  Serial.println ();
}

[/code]

For a room temperature of 22 *C and 50% humidity the readings from the first sensor are 122 *C and 150% From the second sensor the readings are 222 *C and 250%

Is this a bug in Adafruit DHT library or am I doing something wrong?

Try changing "humidity 1" to "humidity 1:" . Similarly for the other labels. You have no separation between the digit at the end of your label and the value you are displaying.

johnwasser: Try changing "humidity 1" to "humidity 1:" . Similarly for the other labels. You have no separation between the digit at the end of your label and the value you are displaying.

;)

That solved the issue. Thank you!