> 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-c-pro/synchronous-updates/sensors.md).

# Sensors

\[InvisOutlet -> TCP]

> Updating InvisDeco's latest sensor readings.

#### Response

* <mark style="color:red;">`sn`</mark>: The serial number of the InvisOutlet.
* <mark style="color:red;">`packetID`</mark>: Represents the packet ID.
* <mark style="color:red;">`payload`</mark>:&#x20;
  * <mark style="color:red;">`callbackName`</mark> : 11
  * <mark style="color:red;">`callbackArgs`</mark> :&#x20;
    * `0` : The InvisDeco device type.
    * `1` :&#x20;
      * <mark style="color:red;">`temp_valid`</mark> : A flag indicating the validity of the temperature and humidity sensor; 1 - valid, 0 - invalid.
      * <mark style="color:red;">`aqi_valid`</mark> : A flag indicating the validity of the air quality sensor; 1 - valid, 0 - invalid.
      * <mark style="color:red;">`temp_celsius`</mark>: Temperature in Celsius.
      * <mark style="color:red;">`humidity`</mark>: Relative humidity in percentage.
      * <mark style="color:red;">`BME680_temp_celsius`</mark>: Temperature from the air quality sensor.
      * <mark style="color:red;">`BME680_humidity`</mark>: Humidity from the air quality sensor.
      * <mark style="color:red;">`AQI`</mark>: Air quality index level.
      * <mark style="color:red;">`AQI_accuracy`</mark> : Accuracy of the AQI measurement; 3 - most accurate, 2 - average accuracy, 1 - least accuracy, 0 - calibration in process.
      * <mark style="color:red;">`pressure`</mark>: Atmospheric pressure in Pascals (Pa).
      * <mark style="color:red;">`gas`</mark>: Gas sensor reading in Ohms.
      * <mark style="color:red;">`co2_equiv`</mark>: Equivalent CO2 concentration in parts per million (ppm).
      * <mark style="color:red;">`co2_peak_lvl`</mark>: Peak CO2 concentration in ppm.
      * <mark style="color:red;">`co2_accuracy`</mark>: Accuracy of the CO2 measurement; 3 - most accurate, 2 - average accuracy, 1 - least accuracy, 0 - calibration in process.
      * <mark style="color:red;">`bvoc_equiv`</mark>: Equivalent breathe volatile organic compounds (bVOC) concentration in ppm.
      * <mark style="color:red;">`bvoc_accuracy`</mark>: Accuracy of the bVOC measurement; 3 - most accurate, 2 - average accuracy, 1 - least accuracy, 0 - calibration in process.
      * <mark style="color:red;">`lux_valid`</mark>: A flag indicating the ambient brightness sensor validity of the sensor; 1 - valid, 0 - invalid.
      * <mark style="color:red;">`lux`</mark>: Ambient brightness level in LUX.
      * <mark style="color:red;">`occupancy_valid`</mark>: A flag indicating the occupancy sensor validity of the sensor; 1 - valid, 0 - invalid.
      * <mark style="color:red;">`occupancy_state`</mark>: The occupancy detected state; 0: no occupancy, 1: movement only, 2: stationary only, 3: stationary and movement, 4: calibration in progress, 5: calibration success; 6: calibration failed.
      * <mark style="color:red;">`distance`</mark>: The occupancy detected distance in centimeter (cm) between the device and the human movement.
      * <mark style="color:red;">`movement_energy`</mark>: The energy level of the detected movement occupancy; 0 (lowest) - 100 (highest)
      * <mark style="color:red;">`stationary_energy`</mark>: The energy level of the detected stationary occupancy; 0 (lowest) - 100 (highest)

```json
{
  "sn": "12A3520006E",
  "packetID": 600204,
  "payload": {
    "callbackName": 11,
    "callbackArgs": [
      4,
      {
        "temp_valid": 1,
        "aqi_valid": 1,
        "temp_celsius": "23.85",
        "humidity": "67.26",
        "temphumidity_accuracy": 1,
        "BME680_temp_celsius": "31.91",
        "BME680_humidity": "36.65",
        "AQI": 58,
        "AQI_accuracy": 3,
        "pressure": 99814,
        "gas": 337712,
        "co2_equiv": 587,
        "bvoc_equiv": "0.60",
        "lux_valid": 1,
        "lux": "389.85",
        "occupancy_valid": 1,
        "occupancy_state": 3,
        "distance": 54,
        "movement_energy": 100,
        "stationary_energy": 100
      }
    ]
  }
}
```
