> For the complete documentation index, see [llms.txt](https://api.intecular.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.intecular.com/invisoutlet-pro/device-management/invisdeco/temperature-and-relative-humidity-calibration.md).

# 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 %}
