Light Intensity
List of Supported Sensors
Sensor | Sensor Id |
---|---|
BH1750 | 5 |
note
Note the Sensor ID's of your chosen sensor, Sensor ID's needs to written into
config.yaml
while configuring Shunya Interfaces.
- Simple API
- Advance API
Simple API
- C/CPP
/* Add this line to your main function * to read data from the sensor */int light = getLux();