The MAX44009 ambient light sensor features an I2C digital output that is ideal for a number of portable applications such as smartphones, notebooks, and industrial sensors. At less than 1µA operating current, it is the lowest power ambient light sensor in the industry and features an ultra-wide 22-bit dynamic range from 0.045 lux to 188,000 lux.
- You can find the datasheet here
- MAX44009
- Male/Female Jumper Wires
- SCL - SCL
- SDA - SDA
- VCC - 5V
- GND - GND
I2cConnectionSettings settings = new I2cConnectionSettings(1, Max44009.DefaultI2cAddress);
I2cDevice device = I2cDevice.Create(settings);
// integration time is 100ms
using (Max44009 sensor = new Max44009(device, IntegrationTime.Time100))
{
while (true)
{
// read illuminance
Console.WriteLine($"Illuminance: {sensor.Illuminance}Lux");
Console.WriteLine();
Thread.Sleep(1000);
}
}