Monitoring relays in industrial enclosure