Can't read Atlas Scientific colour detector

You should not be using a signed type for the print.
Try a "(unsigned char)" cast.