how to Measure distance with photo transistor and led

i most use photo transistor and led
and do not use photoresistor