Using depth information from camera for obstacle avoidance

I’m trying to implement obstacle avoidance for a character using depth information from a camera connected to said character. However, I’m stuck. I have created a render target and connected it to a scene capture component (2D), but I can’t figure out how to access the depth information. In order to perform obstacle avoidance I need to be able to access the depth information in real time.

I originally also planned on saving the depth information in a data table by adding new depth information as the character moves around the environment, but have since understood that a data table cannot add rows as the game is running. The reason for storing the depth data is so that the character could make the “smartest” decisions based on previous data as well.

Any suggestions on how to solve either of these problems would be greatly appreciated!