Added GateSensor state processing
Added ValueSensor state processing