Most circuits with a microprocessor ESP32 on the Internet are faulty. Often the 5 volt or 3.3 volt line is missing. Here is a working circuit using a TCS3472 and an ESP32c3 mini.
README.md - this file
circuit.png - 2 parts circit
esp32c3 mini_rgb-sensor_tcs3472_python.fzz - fritzing file
tcs34725.py - library
main.py - python code