Datasheet

Here's an example using a Trinket M0 - you can use any
CircuitPython board, just check that the Data pin is
pulseio -capable.
In this example we'll use a Feather M0 and DHT22
sensor connected to pin D6
https://adafru.it/A0o
https://adafru.it/A0o
Usage
To demonstrate the usage of the DHT sensor module you can connect to your board's serial REPL and run Python
code to read the temperature and humidity.
Next connect to the board's serial REPL (https://adafru.it/Awz)so you are at the CircuitPython >>> prompt.
Next import the board and adafruit_dht modules, these are necessary modules to initialize and access the sensor:
© Adafruit Industries https://learn.adafruit.com/adafruit-gemma-m0 Page 134 of 186