//#include <Arduino.h>
#include <Wire.h>
#include <BH1750.h>
BH1750 luxometro;
//const BH1750::Mode luxMode = CONTINUOUS_HIGH_RES_MODE;
//------------------------------------------------------------------------------
void setup() {
Serial.begin(115200);
Wire.begin();
luxometro.begin (BH1750::CONTINUOUS_HIGH_RES_MODE); // (BH1750::ONE_TIME_HIGH_RES_MODE);
}
//------------------------------------------------------------------------------
void loop() {
Serial.println(luxometro.readLightLevel());
delay(1000);
}
//------------------------------------------------------------------------------