Can't read Atlas Scientific colour detector

Thanks, robtillaart. I tried your code, too, but I still don't get anything back.