If I have a material that tightens or loosens based on temperature or chemical gradient, does that count as "sensory input"? I wouldn't say so, since nothing is receiving a signal from it to distinguish, and I also wouldn't say it's causing experiences, but it is enough to seek nutrients for a bacteria or a jellyfish-like creature.
You're right, a bacteria would sense and follow chemical gradients and light. And that would be a primitive form of consciousness.
A piece of material is not conscious because it doesn't need to. You see, bacterias are self replicators, humans too. And self replication is resource intensive, while resources are limited. So life becomes a competition. That is why agents need to become more attuned to their state and possible actions and outcomes.
Is that good enough to be called consciousness? Taking sensory inputs, representing your state, taking actions, observing effect, learning from it. Your goal - to exist, to make copies of yourself. If you're not aware of essential information, or don't understand your situation, you die. If you live, it's because you are aware.
Natural selection is the outer loop, reinforcement learning the inner loop. Agents, by living or dying, send signals into the system, guiding the process.
"consciousness" as a philosophical question is not about the ability to detect state in the world (including your own state) and reacting to it. it is not about self-replication.
It is about having subjective experience aka "qualia". It is about "it being like something to be you", contrasted with, e.g. being a rock (which most people agree, it is not like anything to be).