# Temperature and Relative Humidity Calibration

> This request calibrates the temperature and relative humidity of the InvisDeco.

{% hint style="info" %}
If you believe your temperature and humidity sensor is not accurate for your area, please perform this API request.

Please make sure no appliances or adapters are plugged into the InvisOutlet for 30 minutes before the calibration.

*Note: This calibration cannot compensate heat generated from plugged-in devices into the receptacle of the InvisOutlet.*
{% endhint %}

**Request**

* <mark style="color:red;">`packetID`</mark>: Represents the ID of the packet. This can be any six digit number, no leading zeros.
* <mark style="color:red;">`payload`</mark>:&#x20;
  * <mark style="color:red;">`callbackName`</mark>: 28
  * <mark style="color:red;">`callbackArgs`</mark>:&#x20;
    * `0`: The actual temperature in the area in Celsius in millis. For example: 25ºC would be 25000.
    * `1`: The actual relative humidity in the area in percentage in millis. For example: 50% would be 50000.

```json
{
    "packetID": 221057,
    "payload":
    {
        "callbackName": 28,
        "callbackArgs": [25000, 50000]
    }
}
```

**Response**

* <mark style="color:red;">`sn`</mark>: The serial number of the InvisOutlet.
* <mark style="color:red;">`packetID`</mark>: Represents the ID of the packet based on request <mark style="color:red;">`packetID`</mark>.
* <mark style="color:red;">`PUBACK`</mark> : 1 - The request is received and calibration has been processed successfully. 0 - Timeout to request occupancy sensor to perform calibration. Please try to restart InvisDeco and try again.

```json
{
    "sn": "0003C44076",
    "packetID": 221057,
    "PUBACK": 1
}
```

{% hint style="info" %}
In order to provide the most accurate AQI measurements, the InvisDeco will reset and restart in order to apply the updated temperature and humidity calibration.
{% endhint %}


---

# 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://api.intecular.com/invisoutlet-pro/device-management/invisdeco/temperature-and-relative-humidity-calibration.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.
