# Sensors

> Fetch InvisDeco's latest sensor readings.

**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>: 11

```json
{
    "packetID": 371939,
    "payload":
    {
        "callbackName": 11
    }
}
```

#### 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> : If the request is successfully processed; 1 - Successful, 0 - Fail.
* <mark style="color:red;">`payload`</mark>:&#x20;
  * <mark style="color:red;">`callbackName`</mark> : 11
  * <mark style="color:red;">`callbackArgs`</mark> :&#x20;
    * `1` : The InvisDeco device type; reserved for internal use.
    * `2` :&#x20;
      * <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.

```json
{
    "sn": "11B29200071",
    "packetID": 371939,
    "PUBACK": 1,
    "payload": {
        "callbackName": 11,
        "callbackArgs": [
            1,
            {
                "lux_valid": 1,
                "lux": "3489.80"
            }
        ]
    }
}
```
