Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

Update Adafruit_DHT_Driver/Adafruit_DHT.c #1

Merged
merged 1 commit into from
Aug 24, 2012

Conversation

BooBSD
Copy link
Contributor

@BooBSD BooBSD commented Aug 24, 2012

Temperature bugfix.

ladyada added a commit that referenced this pull request Aug 24, 2012
Typo fixed - thanks BooBSD!
@ladyada ladyada merged commit d11fb97 into adafruit:master Aug 24, 2012
@pfcurtis
Copy link

I've been working with a Raspberry Pi and the wired DHT-22. I wanted to place the sensor(s) a fair distance away from the RasPi, but found the data was not correct. In order to receive the correct data, I added a delay just prior to the loop that checks for the GPIO pin to go low. I did not submit a patch, as I suspect the delay will be different for each installation.

usleep(4);
// wait for pin to drop?

This small delay allows both the remote sensor (~60 ft away) to read properly, and does not affect the sensor connected via a Pi Cobbler.

No other changes to the code were required.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants