Moisture meeasurement with microwaves
lends itself because these are able to penetrate matter.
This applies as long as it is not electrically conductive. In materials composed of dipole molecules, e.g. Water, the molecules are vibrated by the microwaves. Here they lose their energy.
The loss depends on the amount of water they penetrate.