The present disclosure provides a machine (100) for surface mining or road milling. The machine (100) is arranged to remove material from a ground region (102) while moving along the ground region (102) and comprises a ground engager for removing a portion of the material from the ground region (102). The machine (100) further comprises a detecting system (110) that has at least one detector element coupled to a component of the machine (100) to move with the machine (100) and arranged to detect at least one quantity associated with an electrical property of the ground region (102). The detecting system (110) is arranged to provide composition information concerning a composition of at least one material layer in the ground region (102) and thickness information concerning a thickness of at least one material layer (102a,b,c,d). The detected at least one quantity associated with the electrical property is used to provide at least one of the composition information and the thickness information.