HDJD-S822 Color Sensor Code?

i just connected by jumber wire and breadboard

Well, that's certainly enough detail to be sure that you wired it correctly. The only other thing I can think of then is that maybe you should have used duct tape.