An elevator comprising: an elevator car roof system comprising: a plurality of movable roof panels forming an elevator car roof; at least one sensor configured to indicate positions of the roof panels and to detect an object on any roof panel, characterized in that the positions comprise at least a first state in which the roof is fully closed, a second state in which the roof is fully open and a third state in which the roof is partially open; wherein the elevator further comprises: a control system configured to receive at least one signal from the at least one sensor of the elevator car roof system ; wherein the control system is configured to enable normal elevator operation based on at least one signal received from the at least one sensor only in the first state when no object is detected on the roof; wherein the control system is configured to, based on at least one signal received from the at least one sensor , disable any elevator operation in the third state or when an object is detected on the roof; and wherein the control system is configured to enable an elevator inspection drive based on at least one signal received from the at least one sensor only in the second state. an elevator car roof system comprising: a plurality of movable roof panels forming an elevator car roof; at least one sensor configured to indicate positions of the roof panels and to detect an object on any roof panel, a plurality of movable roof panels forming an elevator car roof; at least one sensor configured to indicate positions of the roof panels and to detect an object on any roof panel, characterized in that the positions comprise at least a first state in which the roof is fully closed, a second state in which the roof is fully open and a third state in which the roof is partially open; wherein the elevator further comprises: a control system configured to receive at least one signal from the at least one sensor of the elevator car roof system ; wherein the control system is configured to enable normal elevator operation based on at least one signal received from the at least one sensor only in the first state when no object is detected on the roof; wherein the control system is configured to, based on at least one signal received from the at least one sensor , disable any elevator operation in the third state or when an object is detected on the roof; and wherein the control system is configured to enable an elevator inspection drive based on at least one signal received from the at least one sensor only in the second state. a control system configured to receive at least one signal from the at least one sensor of the elevator car roof system ; wherein the control system is configured to enable normal elevator operation based on at least one signal received from the at least one sensor only in the first state when no object is detected on the roof; wherein the control system is configured to, based on at least one signal received from the at least one sensor , disable any elevator operation in the third state or when an object is detected on the roof; and wherein the control system is configured to enable an elevator inspection drive based on at least one signal received from the at least one sensor only in the second state. <EOS>