how to Measure distance with photo transistor and led

the led is TLDR5800
the photo transistor is QTLP610CPD
arduino ono

Someone can draw a block scheme?

thanks!