Calculate Distance of Light Source with Voltage Changes of Analog Input with LDR

Roughly speaking, light is a million times faster than sound.

Sound : 0.9 mS / ft

Light : 1 nS / ft.

An arduino clock cycle at 16MHz is 62.5 nS.

Allan