REally odd Problem with ESP32 and I2C

Hi I have a odd Problem with i2C look at the Remarks

   ESP_LOGD(TAG, "Searching for camera address \n");
  uint8_t slv_addr = SCCB_Probe(); // Here I get the I2C Slave address
	  s_state.slv_addr = slv_addr;
	  
    
	  printf("Detected camera at address=0x%02x  \n", slv_addr);

	  	

	  printf("Camera at address=0x%02x  \n", slv_addr);
	  
	  const int REG_PID = 0x0A; /* Product ID Number MSB */
	  const int REG_VER = 0x0B; /* Product ID Number LSB */
	  const int REG_MIDH = 0x1C; /* Manufacturer ID Byte – High */
	  const int REG_MIDL = 0x1D; /* Manufacturer ID Byte – Low */

	  
	  s_state.config.PID = SCCB_Read(slv_addr, REG_PID); // does not work SCCB_Read [0A] failed rc=3
	  s_state.config.VER = SCCB_Read(slv_addr, REG_VER);  // does not work SCCB_Read [0B] failed rc=3
	  s_state.config.MIDL = SCCB_Read(slv_addr, REG_MIDL);  // does not work SCCB_Read [1D] failed rc=3
	  s_state.config.MIDH = SCCB_Read(slv_addr, REG_MIDH); // does not work SCCB_Read [1C] failed rc=3
	  
	  delay(10);
	  printf("Camera PID=0x%02x VER=0x%02x MIDL=0x%02x MIDH=0x%02x \n",
	  s_state.config.PID, s_state.config.VER, s_state.config.MIDH, s_state.config.MIDL);
	    	  
	  int Array[100];


	  int dummy;
// Here I scan the hole I2C device and it works
	  for (int i = 0; i < 99; i++)

	  {
		  dummy = SCCB_Read(slv_addr, i);
		  printf("I @ 0x%2x  - PID 0x%2x  \n", i, dummy);
		  Array[i] = dummy;
		  delay(10);
	  }

	  s_state.config.PID = Array[REG_PID];
	  s_state.config.VER = Array[REG_VER];
	  s_state.config.MIDH = Array[REG_MIDH];
	  s_state.config.MIDL = Array[REG_MIDL];


	  delay(10);
	  printf("Camera PID=0x%02x VER=0x%02x MIDL=0x%02x MIDH=0x%02x \n",
		  s_state.config.PID, s_state.config.VER, s_state.config.MIDH, s_state.config.MIDL);

Does someone has a clue what is wrong with the Code!!!

Does someone has a clue what is wrong with the Code!!!

Lots of stuff. It is piss-poorly indented, to start with. Use Tools + Auto Format BEFORE posting code, so you at least resemble someone who knows what they are doing.

Second, it is obviously incomplete.

Third, adding comments to describe what doesn't work was useless. Just tell us.

Is the camera the only device connected to the I2C bus? The SCCB_Probe() is not doing what the name let assume but simply scans the I2C bus for any address that reacts with an ACK.