It is difficult to define consciousness without unwittingly setting up a dividing line between those entities which possess it and those which don't, from which arise emotive debates such as how certain animal species are prepared for the table, or at what stage of foetal development consciousness first begins to manifest itself and so on.
On a more frivolous level, you might want to split hairs about whether a computer, which successfully passes the Turing test also enjoys consciousness or if it is merely a stream of processor operations which produce the outward appearance of one. Having done that, one might wish to contemplate whether WE are, likewise just the outward manifestation of a stream of 'neural processor' "operations".
What is it?'
At the most basic level, sensory input has to be continually compared to what is in memory, to comprehend what is being sensed. On another level, there's a decision-making process (eat/fight/mate/protect offspring etc). On a more sentient level, ability to plan future actions, cache food, nest building and so on. Somewhere along this increasing level of sophistication, a sense of self emerges, perhaps as a result of the brain organising memories into a narrative sequence. Some animal species acknowledge their own reflection as being themselves, the majority do not. Capacity for self-awareness is not a criterion I would apply to consciousness, in its general sense.
I will understand if you prefer to confine this question solely to human consciousness but, if so, I will be obliged to ask what others think about 'unconscious' situations, such as non-REM sleep, coma, head trauma, severe cognitive impairment.