Quantcast
Channel: Seeedstudio Forum
Viewing all articles
Browse latest Browse all 6612

Connecting 2 Grove devices to Stalker 3.0

$
0
0
Hi, I'd tried 7 in a previous iteration, this is the result. I'd thought perhaps that the DHT11 was a dud, so I've tried three different ones, all result in the same issue.


Code:
  float h = dht.readHumidity();
  // Read temperature as Celsius
  float t = dht.readTemperature();
  // Read temperature as Fahrenheit
  float f = dht.readTemperature(true);
  // Check if any reads failed and exit early (to try again).
  if (isnan(h) || isnan(t) || isnan(f)) {
    Serial.println(h);
    Serial.println(t);
    Serial.println(f);
    Serial.println("Failed to read from DHT sensor!");
    return;
  }



Code: DHT11 test result

nan
0.00
32.00

Failed to read from DHT sensor!


Statistics : Posted by byronjbignell • on Sat Jan 03, 2015 5:33 pm • Replies 2 • Views 106

Viewing all articles
Browse latest Browse all 6612

Latest Images

Trending Articles



Latest Images