I'm having trouble connecting my MLX90614 temperature sensor to my Arduino UNO R4 WiFi. Despite my efforts, the sensor is not being detected by the Arduino. I've checked the connections and the code, but I can't seem to figure out the issue.
Could anyone help me understand what might be causing this problem or suggest some ways to fix it?
I think you need to apply level shifter or voltage divider for SDA, SCL.
From the photo it looks like there is no I2C pull-up resistor. Try pulling up SDA and SCL with a few KΩ to 10 KΩ.
The maximum frequency for Uno R4 I2C is 400KHz. Try lowering it to 100KHz.
Edit: Please use the <code> tag to post your code instead of the screenshot. The code is hard to read in the picture, can't be quoted, and can't be copied and pasted to test.