FYI. I found to get this sensor to work in module 5 unit 3 I had to set the 3rd parameter for the DHT sensor as descrided in the notes in the DHT library examples . I set this values to 15 to get meaningful temperature and Humidity readings /
// NOTE: For working with a faster chip, like an Arduino Due or Teensy, you
// might need to increase the threshold for cycle counts considered a 1 or 0.
// You can do this by passing a 3rd parameter for this threshold. It’s a bit
// of fiddling to find the right value, but in general the faster the CPU the
// higher the value. The default for a 16mhz AVR is a value of 6.
Hi John,
Are you also using the DHT22? Did you set that parameter with 15?
DHT dht(DHTPin, DHTTYPE, 15);
Thanks,
Rui
Hi Rui,
Yes I am using a DHT22 and yes I set it as above.
Without the third parameter I was gettting readings up above 3000 degrees c. and with the 3rd parameter set too high I got readings of 0 degrees C
Regards