Skip to content

ASAIR DHT11 sensor type, wrong temperature values below 0C #199

@schayg

Description

@schayg

The current DHT11 section of the DHT code -- to my understanding -- handles negative temperatures strangely:
it FIRST transforms the integral part into negative by subtracting from -1, and THEN simply adds the decimals.
Not sure this is how it should be, as the original DHT11 sensor is not certified for negative temperatures.

However, the ASAIR made DHT11, which is now the dominant version on the market, handles the negative values exactly the same way as the DHT12, i.e. the decimal part has the highest bit set to 1 (value & 0x80)=0x80 but no other transforms.

maybe a section could be added to the code, like a new type of DHT11 to accommodate this.
The current code with the ASAIR DHT11 reads wrong numbers below 0C.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions