This might not correspond 100% to what philosophers mean, but it has the immense advantage of making consciousness a well defined concept, and even measurable.
So from this perspective, reflective awareness is what you define as consciousness, and it can be present to massively varying degrees, alongside direct awareness down to the neuron.
But, you are right that it is possible to write quite simple self modifying programs that would be conscious with this definition. However, having consciousness without intelligence can't be very useful.
Either All sensory endpoints and the viewer are one, the viewer IS the cumulative sensory endpoint, we'll name this consciousness.
OR the viewer is a separate "something", the viewer is separate from the sensory endpoint. And we'll name the sensory endpoint "consciousness" and the viewer the "soul".
Any other ideas?
We humans are similar, we have our eyes (camera), this sensory data goes to our brain (cpu) and then it goes to our display (... consciousness?).
That's how I see it anyway