adafruit / adafruit/TinyDHT

Error in example file TinyDHT_TestUno.ino

Open
#8 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

line 33:
`int16_t t = dht.readTemperature(1);`
Passing a "1" requests temperature in Fahrenheit (versus "0" for Celcius)
line 44:
`Serial.println(" *C");`
But, print statement indicates this is a Celcius value.

Contributor guide

No contributing guide indexed for this repository

Research direction

Open the TinyDHT_TestUno.ino example and inspect lines 33 and 44 together. Confirm that the temperature unit requested by readTemperature matches the unit printed in the serial output; done means the example's request and label consistently describe the same unit.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, cpp
Domain
embedded-iot
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.