how to Measure distance with photo transistor and led

dudiraviv:
the led is TLDR5800
the photo transistor is QTLP610CPD
arduino ono

Someone can draw a block scheme?

thanks!

Did your teacher put "show your block diagram" in the assignment?