“Update on this product. I have been using it now for about 8 months. I have relocated it on my roof. Despite the communications being I2C with a recommended distance of inches rather than feet, the cable length from the sensor to the RPi I'm using is about 17 meters. Cable used is "2 Pair Belden Equivalent 8723 LSF Shielded Screened Cable" from CEF. Sensor is working fine, taking readings every 30 seconds or so. I occasionally get a bad read, but I can live with that, so jobs a good one.”
“The sensor seems to work very well, however, be advised that there isn't an official ESPhome library for it. There is a third party library available here which seems to work: https://github.com/esphome/feature-requests/issues/2874”
“I bought your ambient light sensor (DFRobot – SEN0390) about a week ago, for use on my Raspberry Pi. I assumed that since it was being purchased from the Pi Hut, it would be suitable for the RPI. When encountering problems with installing the DFRobot library for it, contacted the PiHut to get advice. They directed me to DFRobot Support, who quickly told me that their library wasn’t suitable for the RPi, I would need to develop my own.
When contacting the Pi Hut to let them know this and said that I was in no position to write my own library, they offere a code for me to return the unit for a refund.
I don’t give up that easily and have managed a workaround, which has given me stable data for the device, although I am still investigating this. I did find an alternative library written by someone, though I had saved it, but in the confusion of trying to resolve the issues, didn’t. BUT there is one out there somewhere. Don’t know if it works but it could be worth a try.
In the meantime, I have fixed the device in manual mode on the highest resolution that gives me a max. of 200,000 lux. I’m not looking for enormous accuracy so that’s good enough for me.
Just be aware that this device is not very well supported for use on the Pi.
If anyone has a better solution for this please let me know.”