Skip to content

Initialize Sensor always fails #1

@Harithmetic1

Description

@Harithmetic1

Good day, I have been looking for a library that works well with my ASAIR DHT20 sensor for a while now, and so far, your library is the only promising thing I have seen to date. However, whenever I run the example code (getData), it always prints out "Initialise sensor failed" to the serial monitor.

When I try to override it, by negating the while loop condition i.e while(!dht20.begin()) instead of while(dht20.begin()). I get a constant reading of 150.03C and 100% RH on my Serial monitor.

I have followed the connection on the ASAIR data sheet properly and installed this library on my Arduino IDE. Are there any reasons why this problem persists, and how can I get the correct readings from my sensor?

Here is a picture of my code for the first instance
Screenshot 2022-04-02 143733

Second instance
NotGetData

The circuit connection
ASAIR Connection

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