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?