A Security System with Motion Detection