I went into class today, extolling the virtues of the DHT22, only to have it fail spectacularly when I started demoing it.
It was connected to a Photon, with the DHT_simple.ino example (from the Piettetech_DHT library). It hangs at DHT.acquireAndWait(1000), and then reboots after making the RGB led flash red repeatedly. For the record, the temperature/humidity in the room was within the limits of the DHT22
I’m running deviceOS@1.2.1, and, at least in Visual Studio Code, Serial.available() doesn’t seem to work (pressing a key doesn’t get me out of the while() loop in setup().
Any ideas? Should I try a library other than PietteTech_DHT? Thanks in advance for any help…