Digital read (boolean value) from phototransistor

Almost certain this is the solution I am looking for, but I am having trouble locating info on the esp32 datasheet. A link would be appreciated.

Located this stack exchange post, but would prefer an official source