A locking mechanism (10, 20) configured to cooperate with at least one identification key (14, 24) having an identification code (15, 25), the locking mechanism (10, 20) comprising an indoor mechanical actuation lever, an outdoor mechanical actuation lever and a lock clutch, each mechanical actuation lever being configured to switch between a closed configuration and an open configuration, wherein the lock clutch is configured to take at least three positions: - a first position where the lock clutch is disengaged from the indoor mechanical actuation lever and outdoor mechanical actuation lever, - a second position where the lock clutch is engaged with the indoor mechanical actuation lever and outdoor mechanical actuation lever, - a third position where the lock clutch is engaged with the indoor mechanical actuation lever and disengaged from the outdoor mechanical actuation lever, each mechanical actuation lever being configured to switch between the closed configuration and the open configuration when moved if the identification code (15, 25) of the at least one identification key (14, 24) is an authorized code of the locking mechanism (10, 20), the locking mechanism (10, 20) comprising: a processor configured to read the identification code (15, 25) of the at least one identification key (14, 24) and determine if the identification code (15, 25) is an authorized code of the locking mechanism (10, 20); wherein the locking mechanism (10, 20) is characterized in that it further comprises an access to a presence sensor, and the processor is further configured to send to the lock clutch switching commands to an engaged state, where the lock clutch is engaged with the indoor mechanical actuation lever, when the presence sensor detects an authorized user to be present in the room as he was authorized to enter, and to be switched to a disengaged state, where the lock clutch is disengaged with the indoor mechanical actuation lever, when the presence sensor detects nobody to be present in the room. wherein the lock clutch is configured to take at least three positions: - a first position where the lock clutch is disengaged from the indoor mechanical actuation lever and outdoor mechanical actuation lever, - a second position where the lock clutch is engaged with the indoor mechanical actuation lever and outdoor mechanical actuation lever, - a third position where the lock clutch is engaged with the indoor mechanical actuation lever and disengaged from the outdoor mechanical actuation lever, - a first position where the lock clutch is disengaged from the indoor mechanical actuation lever and outdoor mechanical actuation lever, - a second position where the lock clutch is engaged with the indoor mechanical actuation lever and outdoor mechanical actuation lever, - a third position where the lock clutch is engaged with the indoor mechanical actuation lever and disengaged from the outdoor mechanical actuation lever, each mechanical actuation lever being configured to switch between the closed configuration and the open configuration when moved if the identification code (15, 25) of the at least one identification key (14, 24) is an authorized code of the locking mechanism (10, 20), the locking mechanism (10, 20) comprising: a processor configured to read the identification code (15, 25) of the at least one identification key (14, 24) and determine if the identification code (15, 25) is an authorized code of the locking mechanism (10, 20); wherein the locking mechanism (10, 20) is characterized in that it further comprises an access to a presence sensor, and the processor is further configured to send to the lock clutch switching commands to an engaged state, where the lock clutch is engaged with the indoor mechanical actuation lever, when the presence sensor detects an authorized user to be present in the room as he was authorized to enter, and to be switched to a disengaged state, where the lock clutch is disengaged with the indoor mechanical actuation lever, when the presence sensor detects nobody to be present in the room.