detecting hazardous conditions