#include <Adafruit_MLX90614.h>
Adafruit_MLX90614 mlx = Adafruit_MLX90614();
void setup() {
Serial.begin(9600);
while (!Serial);
Serial.println("Adafruit MLX90614 test");
if (!mlx.begin()) {
Serial.println("Error connecting to MLX sensor. Check wiring.");
while (1);
};
Serial.print("Emissivity = "); Serial.println(mlx.readEmissivity());
Serial.println("================================================");
}
void loop() {
Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempC());
Serial.print("*C\tObject = "); Serial.print(mlx.readObjectTempC()); Serial.println("*C");
Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempF());
Serial.print("*F\tObject = "); Serial.print(mlx.readObjectTempF()); Serial.println("*F");
Serial.println();
delay(500);
}
I would like to operate an IR temperature sensor MLX90614 with Wio terminal - this sensor uses the I2C interface. I used pins 3 and 5 or 25 and 26 for SCL and SDA, but without result.
While it works very well with an arduino nano ble sense.
I use the "Adafruit_MLX90614" library. I tried to use an I2C scan program to get the sensor address.
I was able to get the address i2c but it didn't work
but if I use another i2c sensor it works perfectly with the wio terminal.