Hello, I am building a colour sorting machine with my students in STEM. We purchased the Gy-33 TCS34725 sensors as we could not obtain the adafruit version or the DF robot version of the TCS34725 sensor. We are basing our project on the electromaker Sorting Machine.
We are using the example.ino for TCS34725 Library as we are checking what the sensor is reporting in the serial monitor.
No matter what colour we are putting under the sensor- we are getting this result
18:58:44.291 -> Interval : 260
18:58:44.291 -> Color Temp : 0.00
18:58:44.291 -> Lux : 0.00
18:58:44.291 -> R : 255.00
18:58:44.291 -> G : 255.00
18:58:44.291 -> B : 255.00
18:58:44.291 -> Raw R : 65535
18:58:44.291 -> Raw G : 65535
18:58:44.291 -> Raw B : 65535
18:58:44.291 -> Raw C : 65535
We are using the UNO board
I have wired it as follows
VCC to 5V
GND to GND
SDA to A4
SCL to A5
Is the one you are using a "bare bones" sensor or one on a module, like the adafruit/df ones presumably are. If not you will probably need pull up resistors on the sda and scl lines; those are normally fitted on modules.
Run the I2C scanner to ensure your sensor is actually being detected. Unfortunately I can't give you a link to that right now.