See main code main.c.
This sample code implement procedures to read values from MAX44009 ambient light sensor via ESP-IDF's I2C master driver, based on Max Integrated's MAX44009 datasheet.
For your local setup, connect SDI pin to GPIO 15 pin and the SCK to GPIO 2 pin as they are default ports (I2C_SDA, I2C_SCL) for I2C master according to ESP32 datasheet, C.4. IO_MUX, Page 49.