Mapping nearby features, spotting road edges and lane markings, reading signs and traffic lights and identifying pedestrians is done using a combination of cameras, radar and lidar (which works like radar, but with pulses of light rather than radio waves).
The vehicle systems are capable of tasks such as scanning movement of objects around it, identifying a green light from a red light and measuring the trajectory of the vehicle on the road.