Hi,
Here's an example in C#, You might need to change some things here, but the basics should work, I hope...
Put this in your trigger code:
// Remember to Change 'SensorName' to the correct name of your sensor
var mySensor = Modules.WithName("SensorName").Get();
// Debug code
//Program.Notify("Debug", mySensor.Parameter("Sensor.Generic").DecimalValue.ToString())
// Returns 'True' if the value of the sensor is 38 or higher
return (mySensor.WasFound && mySensor.Parameter("Sensor.Generic").DecimalValue >= 38);
And this in the 'Code to run'
var mySensorValue = Modules.WithName("SensorName").Get().Parameter("Sensor.Generic").DecimalValue.ToString();
Net.SendMessage("[email protected]", "Sensor", "Sensor value is " + mySensorValue );
Edit: Don't forget to set the trigger to
"When condition evaluation switches to 'true'" or you'll get a lot of mail as
bkenobi mentions below.
HTH, Marcel.