A device has a sensor connected to an alarming system. The sensor triggers with probability 0.95 if dangerous conditions exist in a given day and with probability 0.005 if conditions are normal during the day. Days with dangerous conditions occur with probability 0.005.