A locking assembly including first and second hubs rotatably mounted in a case, a latch assembly which retracts in response to rotation of either of the hubs, and a locking member which selectively prevents rotation of at least one of the hubs. A sensor assembly is associated with at least one of the hubs, and is configured to transmit a signal in response to rotation of the at least one hub.