Diamonds are just compacted carbon. If you could create a device that detected dense carbon objects, then it could find diamonds.
https://chem.libretexts.org/Ancillary_Materials/Exemplars_an...
Nope, diamond is 3.51g/cm³, some rocks are in the same density range.