2 Configures a DHT22 humidity/temp sensor to work with a Particle Photon and publish readings to the Particle Dashboard.
4 I've included a copy of the PietteTech_DHT library, feel free to grab a more recent copy and replace what is bundled in if it's outdated.
6 The connection setup for the DHT22 is as follows...
9 * PIN 2 = Data (D1 is default for this project)
13 Between PIN 1 and PIN 2 I'm running a 10K pulldown resistor
15 Note: I did run into issues when trying to use D0 to connect to the DHT22 even though the library says it's supported.