Contact-Monitoring System for Rotary Valves Designed for Safety