DESIGN AND IMPLEMENTATION OF FACTORY SECURITY SYSTEM