Example esp-idf code for the Espressif ESP32 to read the following I2C sensors and report their values via MQTT:
Example esp-idf code for the Espressif ESP32 to communicate with BME280, INA226, INA228 and ADXL345
Example esp-idf code for the Espressif ESP32 to read the following I2C sensors and report their values via MQTT: