Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read decimal value also for dht11 #102

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

FoamyGuy
Copy link

@ladyada

Resolves: #98

Looking at the datasheet does seem to confirm the 4th byte holding data for the decimal value by my understanding. I also referenced the Arduino driver and found comparable step in that code here: https://github.com/adafruit/DHT-sensor-library/blob/master/DHT.cpp#L95 and borrowed from it's syntax some.

I didn''t think the float cast mentioned in the issue code is necessary because the division will make it into a float.

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

Successfully merging this pull request may close these issues.

Raspberry Pi 4 + DHT11 Sensor no floating point temps
1 participant