Digital read (boolean value) from phototransistor

Most of phototransistors have peak at infrared region, if you intend to sense visible light look for something more suitable (like TEPT4400).
Emitter to GND, collector to digital input with pullup.

ps. I didn't watch any videos...