Yes, a camera is technically a sensor
Which was all I stated, but somehow people disagree with facts here.
Edit: and you actually easily can measure distance quite accurately with cameras in a stereoscopic setup, but of course this is not what Tesla does, despite having several forward-facing cameras.