Analog or digital IR for proximity sensor?

the problem is i am gona need one device on each side.

Or a reflector.