The challenge is that there's no generally-agreed-upon definition of consciousness: We have no way of determining if an entity is conscious -- even when the entity is biological. Imagine an AI model that has been finetuned to pretend to be conscious. It could fool pretty much anyone into thinking it's conscious. The opposite is true, a smart person can fool others into thinking the person is an unconscious machine.
AI researchers have been grappling with these questions for a long time. Neuroscientists, philosophers, psychiatrists, and psychologists have been grappling with them even longer. As of yet, no one has been able to propose a definition, nor detection method, on which we can all agree. Perhaps the closest we've come to a detection method is the Turing Test.