In situ detection of hazardous waste