Color code sensor