How do self-driving cars work?

It may seem self-explanatory because to a layman, a self-driving car could mean a car that moves on its own. For starters, such cars don't utilize steering wheels and pedals. In such scenarios, do the sensors accurately capture what happens around these vehicles?