design and construction of an automated fire emergency control