In the case of alcohol and maybe drugs, they can determine from your sweat whether you've had any, so there are monitors you can place. I don't know how effective they are. I have come across that. If that's one of the conditions of release, for instance, then that's an operational requirement to determine. That would be an option to look at.
On February 14th, 2012. See this statement in context.