Details

The BH 1750 ambient light sensor operates on the S2C protocol which much be setup before using this device. Review this section for setup.

While the Pi is powered down, connect the sensor like the following diagram:

BH1750

Once you’ve connected the device and booted, now proceed to add the sensor from Light Sensor → BH1750

BH1750Screen

Note that the Address and Bus are separate entries. Be sure that you select the proper address as displayed in the graph. If you are not sure, you can run the i2i2cdetect command and see what the graph says:

i2cdetect -y 1
0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- 23 -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

In our example it is 23 on bus 1.

Once added, the client will display how many Lux the sensor is being exposed too:

BH1750Final