sensors

To measure the probability of detection, offer the sample to the detector many times, and count the number of successful detections.

Probability of detection = (number of successful detections)/(number of trials).