Skip to content

ERROR: Failed to connect to the sensor #4

@ChibiTama314

Description

@ChibiTama314

I connected the sensor to my Arduino Uno according to the pinout on the sensor itself (Red to Vcc, Black to Ground, Yellow to SDA, Green to SCL). I installed the NDIR_I2C library from GitHub and uploaded the sample code, but the only thing I'm getting on the serial monitor is this error:
"ERROR: Failed to connect to the sensor"

I'm sure I connected everything properly, and used the given code, so what seems to be the problem? I'm powering it from my PC. Could that be it?

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