As much as I philosophically love the idea of panpsychism, you can't take this hypothesis seriously without some kind of test of consciousness. Then your test needs to cater towards not just obviously conscious entities (cats, dogs, humans), but also things we typically consider inanimate (electrons, rocks, boulders). Then you need to define the scale in a way that explains why a cat, despite being significantly smaller than a boulder, is also significantly more conscious.
Realistically I believe consciousness is an emergent behavior. It might involve really complicated science we haven't nailed down yet, and is likely a result of environmental stimuli reinforcing it as a survivability trait in what was once unconscious, life-like material (e.g. viruses) over a very long period of time and through a lot of trial-and-error.