Alexander Miles patented the automatic opening and closing elevator.
Source
More: Alexander Miles, Alexander Miles' Elevator Patent