Complex sentence: A magnetic sensor in the mine detects targets, when it detects a suitable target and the target reaches the most vulnerable approach point it detonates the mine.
Split into simpler sentences: A magnetic sensor in the mine detects potential targets. When a suitable target reaches the most vulnerable approach point it detonates the mine.