Smart tag detector