Added detect_present_sensors helper function