Construction of detection system for wonderer in a building