Mineral sensor