Proximity sensing system for retinal surgery patients