Devices called encoders, located inside the sensors on autonomous cars, convert motion and other information acquired on the road into electrical signals that can then be used as feedback for the software running the vehicle to make informed decisions.