Dht11 + particle photon 2 = malfunction

None of the libraries are working correctly for the DHT11 and the Particle Photon 2; the temperature readings are always incorrect. We have already tested with several sensors and multiple libraries, even in different pins (D0-D7), but none of them work for the Particle Photon 2. We also tested with the Particle Photon 1, and it works, and with the Argon as well

It's not possible to use the DHT11 or DHT22, along with a number of other sensors that implement a proprietary protocol via the MCU instead of using a standard like I2C or SPI.

The reason is the RTL872x MCU in the P2, Photon 2, and M-SoM have a really slow GPIO peripheral that makes it impossible to meet these timing specifications. Some protocols like NeoPixel are implemented using the SPI peripheral, but this isn't practical for the DHT series of sensors. See the migration guide for more information.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.