adafruit / Adafruit_CircuitPython_DHT

CircuitPython support for DHT11 and DHT22 type temperature/humidity devices
MIT License
179 stars 62 forks source link

What GPIO pin to use for Pi zero 2 #84

Closed sts-ryan-holton closed 1 year ago

sts-ryan-holton commented 1 year ago

Hi,

I'm got a DHT11 sensor and am confused about the (board.D2) or whatever "data pin" is here, how do I know what gpio pin to set?

import time
import board
import adafruit_dht

dhtDevice = adafruit_dht.DHT11(board.PG6)
ladyada commented 1 year ago

read this guide https://learn.adafruit.com/circuitpython-on-raspberrypi-linux