Davide Gironi writes:
A Spark.io library for the BH1750FVI IC.
The BH1750 IC is a light intensity sensor module with built-in a 16 bit AD converter generating digital signal. With the BH1750 Light Sensor intensity can be directly measured by the luxmeter, without needing to make calculations. This library provides function to measure lux through I2C on a Spark Core.
Code is available on GitHub.