We often hear that a hamster doesn't know about their existence, and it's often used to justify improper care and small simple setups. But research shows that animals are aware of themselves, others and the world.
Evidence for the three criteria of sentience. Depending on the source, there could be additional criteria such as capacity to suffer - but I talk about it in other posts.