This is due to the use of INT in the SensorBH1750 class. When values are too high they go negative.
I fixed mine by changing :
new Child(this,INT,nodeManager.getAvailableChildId(child_id),S_LIGHT_LEVEL,V_LEVEL,_name);
to:
new Child(this,FLOAT,nodeManager.getAvailableChildId(child_id),S_LIGHT_LEVEL,V_LEVEL,_name);
and:
int value = _lightSensor->readLightLevel();
to:
float value = _lightSensor->readLightLevel();
This is due to the use of INT in the SensorBH1750 class. When values are too high they go negative. I fixed mine by changing : new Child(this,INT,nodeManager.getAvailableChildId(child_id),S_LIGHT_LEVEL,V_LEVEL,_name); to: new Child(this,FLOAT,nodeManager.getAvailableChildId(child_id),S_LIGHT_LEVEL,V_LEVEL,_name);
and: int value = _lightSensor->readLightLevel(); to: float value = _lightSensor->readLightLevel();