Passenger and obstacle detection