Hello joaogarretto,
From your code, the SPI read and write functions(bme68x_spi_read(), bme68x_spi_write()) in your code are different from those in my previous example code(SensorAPI_SPIx_Read(), SensorAPI_SPIx_Write()). I don't know your MCU platform. You can check these two functions and run them again.
... View more