diff --git a/Adafruit_TSL2561_U.cpp b/Adafruit_TSL2561_U.cpp index f77eaf7..50706f9 100644 --- a/Adafruit_TSL2561_U.cpp +++ b/Adafruit_TSL2561_U.cpp @@ -107,7 +107,7 @@ boolean Adafruit_TSL2561_Unified::init() { /* Make sure we're actually connected */ uint8_t x = read8(TSL2561_REGISTER_ID); - if ((x & 0xF0) != 0x10) { // ID code for TSL2561 + if (x & 0x05) { // ID code for TSL2561 return false; } _tsl2561Initialised = true;