I have a DHT11 sensor hooked to pin D0 of a Photon (with a 5.6K pullup resistor). I first tested the device with the Adafruit DHT library and it runs fine. Next I tested with the Piettetech library and the code seems to lock up and never return from DHT.acquiteAndWait(). In fact, it causes the Photon to go into breathing green mode and I have to fiddle with the buttons to get the Photon back to where I can flash code.
Here is a dump of what is printed from the serial port:
Press any key to start.
DHT Simple program using DHT.acquireAndWait
LIB version: 0.4
0: Retrieving information from sensor: Read sensor:
At this point, the Photon just hangs. Any ideas on what might be wrong? The sensor I am using came from China and the little PC board is not identical to the Adafruit version, but the sensor itself seems to be the same and it works fine with Adafruit.
I really need the Piettetech library because my application requires non-blocking code.