That instruction can be easily applied at device’s code:
if (value > 350) digitalWrite(relayPin, HIGH);