To this, you’d add a distance sensor, distance sensor mount, IO shield and (strongly suggested) rechargeable 3.7V LiPo.
If you angle the one sensor at around 45 degrees, you can detect walls and dropoffs.
There are many other accessories available given that it’s Arduino-based, for example if you want to get into APP design, you only need a Bluetooth module: