Grove Sunlight Sensor Library doesn't Work

Ok, Try this with the delay’s…

// Sunlite..
#include "Si115X.h"

Si115X si1151;

/**
 * Setup for configuration
 */
void setup()
{
     Serial.begin(9600);
    delay (2000);
    Wire.begin();
   delay (500);
    if (!si1151.Begin(0x53)) {
        Serial.println("Si1151 is not ready!");
        while (1) {
            delay(1000);
            Serial.print(".");
        };
    }
    else {
        Serial.println("Si1151 is ready!");
    }
}

/**
 * Loops and reads data from registers
 */
void loop()
{
    Serial.print("IR: ");
    Serial.println(si1151.ReadIR());
    delay (500);
    Serial.print("Visible: ");
    Serial.println(si1151.ReadVisible());
    delay(500);
     //Serial.println(si1151.ReadUV());
    //delay(500);
}

Lmk,
So , I’m down to Defective device?, or the wire lib is broken, or needs 2wire.lib ?
more info needed, Can you post a pic of the Hardware setup?
HTH
GL :slight_smile: PJ