Closed TinajaLabs closed 5 years ago
probably a wiring issue. if the TSL2561 breakout is made and sold by adafruit you can post in the adafruit support forums. Otherwise, please post in the vendor support forums
Yes it is the Adafruit TSL2561 Luminosity/Lux/Light Sensor adafru.it/439
I'll repeat the question on the adafruit forum.
For others who follow, the reason I'm confused is that using the basic example sketch, sensorapi, it works. It's only when I use it with other components and libraries that it fails. So I feel sure it's not a wiring problem.
Thanks.
Update: My post on the forums - https://forums.adafruit.com/viewtopic.php?f=19&t=151323
I'm building a room sensor with DHT22, a TSL2561, and an Adafruit PIR sensor (not yet hooked up). These are being plugged into a wemos d1 mini with wifiManager and MQTT libs included.
When I run the simple sensorapi application, unadjusted, I get a reasonable value for the lux reading.
When I run it with my fairly complicated code, I get 65536.
lux: 65536.00 broadband: 65535
infrared: 65535
I added the
getLuminosity()
call to see what they were showing. Here's the code that does the reading.At the top of the sketch, I'm loading the following libs:
The compile results:
It seems to compile just fine. Perhaps there are some conflicts within these libs?
Thanks for any advice, Chris.