An elevator comprising: an elevator car roof system comprising: a plurality of movable roof panels (200, 300, 402, 403, 405, 500) forming an elevator car roof; at least one sensor (404, 407, 408) configured to indicate positions of the roof panels (200, 300, 402, 403, 405, 500) 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 (404, 406, 407) 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 (404, 407, 408) 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 (404, 407, 408), 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 (404, 407, 408) only in the second state. an elevator car roof system comprising: a plurality of movable roof panels (200, 300, 402, 403, 405, 500) forming an elevator car roof; at least one sensor (404, 407, 408) configured to indicate positions of the roof panels (200, 300, 402, 403, 405, 500) and to detect an object on any roof panel, a plurality of movable roof panels (200, 300, 402, 403, 405, 500) forming an elevator car roof; at least one sensor (404, 407, 408) configured to indicate positions of the roof panels (200, 300, 402, 403, 405, 500) 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 (404, 406, 407) 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 (404, 407, 408) 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 (404, 407, 408), 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 (404, 407, 408) only in the second state. a control system configured to receive at least one signal from the at least one sensor (404, 406, 407) 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 (404, 407, 408) 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 (404, 407, 408), 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 (404, 407, 408) only in the second state.