Light detector using a photo transistor and Raspberry pi

Hello guys,

I want to build a light detector where i want to detect light from an SMD LED on a chip. I am using a photo transistor and a comparator for this. Kindly help me. Thanks.

Phototransistor: https://www.mouser.de/ProductDetail/Vishay-Semiconductors/TEPT4400?qs=HsFHTXumnCRp5JUVXeaSCA==

Comparator: https://www.mouser.de/ProductDetail/Texas-Instruments/LM339AN?qs=sGAEpiMZZMuayl%2FEk2kXcddlv8%2BlGbVFQa42TSCthGw%3D