As a way to detect nighttime predators, …

As a way to detect nighttime predators, many species of animals (ducks, dolphins, whales, iguanas) will sleep with one eye open. One hemisphere of their brain is asleep while the other one is awake.