Abstract: A pneumatically operated driving tool having an improved release locking function having a working cylinder, a drive-in tappet mounted on the working piston, a control valve array for moving the piston to the lower dead center and to the upper dead center, and a piston return chamber which is connected to the working cylinder via a first opening adjacent to the lower dead center and via a second opening spaced apart from the lower dead center. The driving tool further includes a mouth tool having a drive-in channel, a magazine having an opening adjacent to the mouth tool, a sensor comprising a slidable sensor head, a sensor slide portion connected to the sensor head and an abutment portion extending transversely to the sensor slide portion's direction of displacement.