Nintendo vs Nyko nunchuck Arduino communication

Thanks for the reply. I tried out the code you gave me. The arduino still did not sense the nunchuck, it just gives me this:

Finished setup
0      joy:255,255        acc:258,258,258      but:1,1
1      joy:255,255        acc:258,258,258      but:1,1
2      joy:255,255        acc:258,258,258      but:1,1
3      joy:255,255        acc:258,258,258      but:1,1
4      joy:255,255        acc:258,258,258      but:1,1
5      joy:255,255        acc:258,258,258      but:1,1
6      joy:255,255        acc:258,258,258      but:1,1
7      joy:255,255        acc:258,258,258      but:1,1

I tried pressing the buttons, moving the joystick, and turning the remote around (to change the accelerometer values) multiple times, and I still get what I posted above.