connection of APDS 9960 sensor to Adafruit Trinket 5V

Hello you all,

I want to use the gesture sensor of the APDS 9960 to control a LED (switching it on, off, basic stuff). Since I want to put it in a small item I bought the Adafruit Trinket wich is supposed to have the required SCL (#2) and SDA (#0) pin in order to run the 9960 sensor (as seen in this pin visualization).
Since the sensor is also ok with 5V - because it has a voltage decreasing thing - this should not be a problem.

my connection setup looks like this:

9960: VIN 3Vo Gnd SCL SDA Int
Trinket: 5V (no connection) Gnd #2 #0 (no connection)

With my Arduino Uno everything works just fine. I just followed these instructions.

Since the serial.println is not supported by the Trinket, I do not know why the sensor is not working with it.
With the Arduino Uno the pin for SCL is A5 and the one for SDA is A4. Do I maybe have to change the code somewhere that the pins 0 and 2 have to be used with the Trinket instead?

Thank you so much and best wishes,
kakerlakenpopo

Since the sensor is also ok with 5V - because it has a voltage decreasing thing - this should not be a
problem.

I don't know where you get that from, the datasheet says something different. The maximum voltage allowed on any pin is 3.8V.
It might be that you're not using the sensor directly but by some breakout board but in this case post a link to that board or better it's schematics.

With the Arduino Uno the pin for SCL is A5 and the one for SDA is A4. Do I maybe have to change the code somewhere that the pins 0 and 2 have to be used with the Trinket instead?

That depends on which core you're using. The ATtiny isn't supported by the IDE directly, so you must have installed an ATtiny core. Depending on that choice you might have to change the libraries used.