The answer would be ego. It is because the ego is responsible for making the mind think or categorized things that are considered to be conscious and unconscious. As you realize the scenario above, the ego will make you think of what you should do in a given circumstances where you have to undergo reality testing of what you perceive and do.