No matter how much you proofread, it seems there is always something that gets overlooked. In the second example code in the “Hardware setup” section of code, I have assigned one of the colour sensors to Pin 2 and Pin 3, but the wiring diagram shows the sensor attached to Pin 26 and Pin 27. The code should read:
# ---Hardware setup---
display = create_PiicoDev_SSD1306()
sensors = [
PiicoDev_VEML6040(bus=1, sda=Pin(26), scl=Pin(27), freq=400000),
PiicoDev_VEML6040(bus=0, sda=Pin(8), scl=Pin(9), freq=400000),
]