adafruit / adafruit/TinyDHT

Why pull the pin high for 250ms?

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
45
Forks
19
PR merge metrics
No merged PRs in 30d

Description

In [TinyDHT.cpp](https://github.com/adafruit/TinyDHT/blob/master/TinyDHT.cpp#L87), the `DHT::read` function pulls the data pin high for 250ms:

```c
// pull the pin high and wait 250 milliseconds
digitalWrite(_pin, HIGH);
delay(250);
```

What is this delay for? Looking through [the data sheet](https://cdn-shop.adafruit.com/datasheets/Digital+humidity+and+temperature+sensor+AM2302.pdf) it doesn't appear to be required.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with TinyDHT.cpp at the DHT::read function and compare the 250 ms delay with the linked AM2302 datasheet. Confirm whether the delay is required and identify the intended change or explanation; the issue is done only when that rationale and any resulting action are established.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.