how to Measure distance with photo transistor and led

Few mm only.
What is the circuit if i use photo transistor and led?
You can show me the block diagram please?