https://www.consumerphysics.com/myscio/technology
http://en.wikipedia.org/wiki/Near-infrared_spectroscopy
I suspect a lot of naive users would end up measuring the pill coating.