An optical sensor that can detect individual molecules promises early detection of diseases and environmental contamination.