I'm a Raspberry Pi (and hardware) noob and am trying to hook up a DHT11 temperature and humidity sensor.
I've found two separate guides, and I'm seeking advice as to which I should follow.
This UU Gear guide connects the + and - terminals to 3.3v and GND respectively, then connects the data pin to GPIO #4:
This Adafruit guide does the same, but (unless I'm misreading the diagram) also connects the data pin to the 3.3v via a resistor:
My question is, which of these methods is preferable?
- what is the effect of connecting to the data pin to the 3.3v via a resistor?
- is there any risk of damage via either method?