Frequently there are short statements in an ordinance that may made it unlawful to metal detect, or a permit may be required, or metal detecting is allowed but no digging. Metal detecting in a cemetery is not a good hobby image. Regardless of the law never metal detect inside of any cemetery boundary.