Bacterial pili are surface fibers that must resist high shearing forces to remain associated with their target. The Escherichia coli type 1 pilus chaperone FimC serves as a 'sensor', ensuring that only stable pilins become incorporated into the growing fiber.