Updated Version of nearThingsDetector