Consciousness pervades our daily experiences, yet it remains largely unaccounted for in contemporary physics and chemistry theories. Several existing theories, such as the Integrated Information Theory (IIT), Global Workspace Theory (GWT), Electromagnetic Field Theory (EMF Theory of Consciousness), and Orchestrated Objective Reduction Theory (Orch-OR), attempt to clarify the essence of consciousness. Yet, they often encounter significant challenges. These challenges arise due to the intricate nature of our neural systems and the limitations of current measurement and computational technologies, which often prevent these theories from being rigorously mathematically described or quantitatively tested. Here we introduce a novel theory that hypothesizes consciousness as an inherent property of certain particle configurations. Specifically, when a group of particles align in a particular state, they exhibit consciousness. This relationship between particle states and conscious perceptions is governed by what we term the "universal consciousness code". And we propose a possible practical mathematical method to decipher the complex relationship between neural activities and consciousness and to test our theory using the latest artificial intelligence technologies.