Question about Gesture Sensor Module APDS-9960

It helps if you post it in the right place

There are several libraries available for the sensor in the IDE Library Manager. Have you looked at them and the examples that they provide?