BH1750lightMeter(0x23);//0x23 if addr connected to ground (=pin open), 0x5c if addr pulled high
boolbh1750init_ok=false;
sensordatadataBH1750;
floatvalue_lightBH1750=0;
@ -84,6 +84,7 @@ struct sensordata
#ifdef SENSOR_PIR
// PIR Sensors HC-SR501 (modified to put out shortest pulse time short pins 5 and 6 of ic)
//pir sensor needs 5v through an inductor for filtering. output level is 3.3v
//hc-sr501 should also be a few cm away from the esp. interference can cause false triggering
sensordatadataPIR;
boolvalue_PIR=false;
#endif
@ -175,6 +176,7 @@ struct sensordata
//#include "Adafruit_TCS34725.h"
#include"tcs34725_agc.h" //class code from example https://github.com/adafruit/Adafruit_TCS34725/blob/master/examples/tcs34725autorange/tcs34725autorange.ino
//Connect SCL to D1, SDA to D2, GND and 3v3
//Maximum measurable light is around 20k Lux. (direct sunlight is easily above 20k Lux)
//Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_700MS, TCS34725_GAIN_1X); //initializer from standart class