Mobile robot with proximity sensor for objects detection