# How to configure event triggers

Event triggers are a powerful feature of the NEON Pressure Sensor. For every measure or set of measures taken (based on the event trigger), the device will determine if the condition was met to send an event message with the condition declared as the trigger. The device will send an event message upon status change, meaning, when the condition is set from false to true and when is set from true to false.

To configure the event triggers the user must generate a downlink and send it through LoRa. The [NEON configurator](https://neon-configurator.twtg.io/) can be used to create the downlink. The event triggers can be configured in the NEON configurator in the **Sensor Conditions** tab > **Event Conditions** section.&#x20;

Every event trigger is a combination of 4 fields that must be defined to set the condition in the device. &#x20;

1. **Mode**: determines the operational mode of the event trigger. This can be above or below to set fixed thresholds on the values being measured, or increasing or decreasing to set a delta of the values measured.
2. **Measurement window**: the amount of measurements to monitor the defined threshold value. Note that the time between measurements is defined in the **Measurement Interval** field.
3. **Measurement threshold**: the value that must be reached in the measurement to trigger the event.&#x20;
4. **Frequent event**: if set to **Yes** the event trigger will be triggered per measurement instead upon status change.&#x20;

### Examples

**Mode = above, measurement window = 1, and measurement threshold = 100**

The combination above will define an event trigger such as if any measurement taken by the device exceeds 100 bar/psi (based on the sensor) an event message will be sent.&#x20;

**Mode = increasing, measurement window = 5, and measurement threshold  = 50**

The above set of parameters will establish an event trigger if the temperature within 5 measurements increases by 50 bar/psi (based on the sensor).

**Mode = below, measurement window = 10, and measurement threshold  = 40**

The combination above will define an event trigger such as if in a period of 10 measurements the temperature remains below 40 bar/psi (based on the sensor) an event message will be sent.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.twtg.io/docs/how-to/pressure-sensor-ps/how-to-configure-event-triggers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
