A method is disclosed for detecting a target substance comprises sensing
one or more physical properties that affect a Nuclear Magnetic Resonance
(NMR) frequency of a substance, calculating an output frequency by using
the one or more physical properties and an NMR frequency associated with
the target substance, generating and sending an electrical signal to a
detection module, the electrical signal having the calculated output
frequency; receiving an indication of the location of the target
substance at the detection module.