locking sensor