Acquiring color sensor threshold