Always returns true?
Closed this issue · 2 comments
jhihn commented
Seems like if the sensor is not attached the begin should fail?
Sparkfun does that:
https://github.com/sparkfun/SparkFun_MLX90614_Arduino_Library/blob/9dba549951001c3f5994b75c4ea327c4b560bff3/src/SparkFunMLX90614.cpp#L36
However I have found that the result of begin() is not a reliable predictor of being able to get a temperature reading, in either way
T365 commented
Mine problem too...
caternuson commented
Please update to the 2.0.0 release of the library:
https://github.com/adafruit/Adafruit-MLX90614-Library/releases/tag/2.0.0
and try that. The call to begin()
now conditionally returns true
/false
based on successful initing of the sensor.