Relay with Hysteresys for Monitoring and Controller Design