1.SCLとSDAを接続、プルアップも忘れずに
2.電源の接続
3.下記のソースコードを書き込む
4.コンパイル実行で表示されたら終了
5.おわり
参考
https://blog.goo.ne.jp/sircs-gid/e/1fb2f6e382a19a9d342561206c4bfeb4
# include <Wire.h>
# define ADD 0x68
float Volts;
float Vref = 2.048 ;
float lux;
 
void setup() {
    Wire.begin();         //i2cの初期化
    Serial.begin(9600);
    // 7 *(1)待ち
    // 6 *(0)
    // 5 *(0)
    // 4 (0)ワンショット,*(1)連続
    // 3 | (00)12ビット,(01)14ビット
    // 2 | *(10)16ビット
    // 1 I *(00)x1,(01)x2
    // 0 I (10)x4,(11)x8
    //初期値の書き込み
    Wire.beginTransmission(ADD);
        Wire.write(0b10011000); //16bit 15sps PGA x1
    Wire.endTransmission();
}
int read_data() {
    //2文字の読み込み
    Wire.requestFrom(ADD, 2);
    //戻し
    return ( (Wire.read() << 8 ) + Wire.read() );
}
 
void loop() {
    Volts = read_data() * Vref / 32767.0 ;
    //Serial.println(String(Volts,5));
    lux = 200.0 * Volts;
    Serial.println(String(lux,5));
    delay(1000);
}

