Note that I get exactly the same values returned as what they reported, and it seems like this happens in other posts as well.
I’ve tried this on two different AS7331 sensors that I just purchased.
I’m running this on an ESP32 Lolin D32, and have tried two different ESP32s with the same result. The same ESP32s can use the AS7265x Spectral Triad sensor just fine.
I’ve tried both these sketches with the same result
Example01_Basic_OneShot
Example02_CONT_Mode
Here’s my breadboarded setup. Note running interrupt to pin 15 and the software code works fine.
I’ll try it with an Arduino Uno and see if I can replicate it there.
It not working with the ESP32 chips that I have, I guess could be a problem with some library somewhere, though other SparkFun sensors have been fine with my ESP chipset.
Frustrating! It might be time to create an issue here GitHub · Where software is built detailing what’s going on and the testing already done (give library details and such like you did here) and hopefully we’ll hear back shortly