got sensor comparison backwards