The interesting motion sensor I've encountered used a simple resistive light sensor, old school cadmium that is a little flat white disk. Obviously does not do the whole job but (the toy) had code that checked a couple times each second, and responded when your hand came near.
So, the code had to know what ambient conditions were, in terms of the cds resistive output, and do some action, when that simple reading had a large enough change. Likely one channel in the processor, for doing A to D conversion.
The range of that was for if you waved your hand near the cds sensor, so perhaps not for self-driving systems, but rather a simple TOY.
I hadn't tested for what kind of room light had to be present, or if it worked outdoors...I think the cds sensor was invented, maybe 1930's ( ? ).