# Max Value

![](/files/-MSd0LJ4Koab9rFArae2)

`max` field is used in order to avoid unexpected values within the Datastream. For every value that matches the data stream type and larger than `max` - `max` will value be used.

For example, you set the `max` value as `10` for your `Integer` data stream and hardware sends `11`. In that case `10` value will be used instead of `11`. The same rule applies for HTTPS API and any user input on the web or mobile application.


---

# 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.blynk.io/en/blynk.console/templates/datastreams/datastreams-common-settings/max-value.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.
