Using MLX90614 and ESP32 - Cam

I am doing a school work, and my group wants to use a ESP32-Cam and a MLX90614 IR sensor.
We are using Arduino Uno.

We took it step by step:
First a clean project the for the sensor, and it worked;
Then a new project for the camera, and it worked as we wanted them to do.

Now we are trying to join them together, in a new project, but the sensor doesn't work.
When we select Arduino Uno on the Tools -> Board option, it works. But then, when we switch to "ESP32 Wrover Board" (the one we use to make the camera work), the sensor just doesn't work.
Even in a new project, only with the MLX sensor's code, it doesn't work.

Does anyone know if there is any problem with working with both of this together?

Seems this is a recurring issue:

My guess is the camera code does not play "nice"; after all a camera is radically different from a normal I2C sensor.

Lots of weirdness:
https://randomnerdtutorials.com/esp32-cam-troubleshooting-guide/

What doesn't work?
We can't see any code, we cannot see a schematic.

I have both the ESP32-Cam and the sensor connected to the Arduino Uno.
I can upload the code to the Arduino, no errors there.
The only thing that happen is that the sensor doesn't read any values.

When i have the tools window like this, the sensor read the values all good.

  • Board: "Arduino Uno"

The camera settings we use are this ones: (image on other reply, only can embed on image)
image
If we setup those settings, the sensor doesn't work.

#include <Wire.h>
#include <Adafruit_MLX90614.h>

Adafruit_MLX90614 mlx = Adafruit_MLX90614();

void setup() {
  Serial.begin(9600);
  if (!mlx.begin()) {
    Serial.println("Error connecting to MLX sensor. Check wiring.");
    while (1);
  };
}

void loop() {
  Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempC());
  Serial.print("*C\tObject = "); Serial.print(mlx.readObjectTempC()); Serial.println("*C");

  Serial.println();
  delay(500);
}

This is the code. On Serial Monitor appears the error "Error connecting to MLX sensor. Check wiring."

That does not make a lot of sense to me.

Can you show us a wiring diagram, so we can understand how the ESP32CAM is 'connected' to the UNO ?

And why are you using an ESP32CAM at all ?

We are using the cam to check if the person is wearing a mask. And check temperatures with the sensor.

It's easier this way. We used this two guides for the connections, and merge them together:

Re: post #4, camera settings used, Core Debug Level: "None". How are you seeing any printouts on the Serial Monitor?

Post an image of your project powered up and not working.

So, I'll try to be more clear.
I have 3 different projects. For all the projects, I never switch any cable on the connections, or configuration (post #4 and #6) .

Project A: A project with only the code to make the MLX sensor read and write values (post #4). When I select the Arduino Uno, it reads and prints the values, all good. When I select the ESP32 Wrover Module, the project uploads, runs, but it shows "Error connecting to MLX sensor. Check wiring." on Serial.

Project B: A project with the code to make the camera work (a pretty long code). I need to chose the ESP32 board, and everything works fine. Code uploads, camera works, shows image, etc.

Project C: A project where i tried to merge the project A and B. The camera works, but when i start the ESP32-camera, the error "Error connecting to MLX sensor. Check wiring." shows up on Serial. The camera still works, but the sensor don't read anything.

Here is a print after compiling and uploading Project C. As I said, the camera is working and getting image, but the sensor just gives an error. (ignore the code itself)

(thanks for all the answers in advance)