Metal detector for powder materials