Perception algorithm for NOT