the same way you do.
They use their eyes.
Birds is one of them
Many birds and fish have eyes on the sides of their heads so they can see in almost all directions and look for predators. Predator animals usually have eyes facing forward so they can track and catch prey easily.
Birds avoid animals with large eyes on the front of their heads because they see them as predators. This is frightening to the bird, so they stay away. Animals with smaller eyes to the side, rather than front, are not thought of as predators by the birds.
All animals with eyes, including humans can see "black and white," or more specifically "light and dark." Birds can also see color. Birds have four types of color receptors in their eyes (humans have three) and can not only see all the colors we can see - they can see more, including partway into the ultra-violet range of the spectrum.
so that they can see if there are any preditors coming
No. They are nocturnal so probably have good eye sight.
Many birds have their eyes on the sides of their head (owls are an exception). In order to focus on objects in front of them, they have to turn their heads.
Talons and sharp eyes to see their prey
they have 2 eyes
Yes, but only to an extent. see, brown eyes make it difficult to see thing that are of the same shade. which means there will be huge holes of nothing like walls birds ect... it also makes you bad at science. i know this because my eyes are brown.
Not all birds have their eyes on the side (eg owls, eagles etc) don't. Those birds which hunt for their food have eyes that are front facing to give them stereo (3D) vision. However those birds which are hunted (prey) (eg Ducks, songbirds etc) have eyes on the side of their heads so that they can see all round themselves to spot hunters sneaking up on them. They do this at the expense of stereo vision. The same is true of mammals, hunters have stereo vision and prey (eg horses) have eyes more on the side.