---
title: "sensorCUE"
canonical: "https://docs.cuesystem.com/space/CVCHELP/522682818/sensorCUE"
format: markdown
---
> Macro (toc)

---

# Properties

**Address** of the device defaults to 2. 

Note: The device’s Address is set by hardware and cannot be changed. The property must be set according to this value. 

# GetLightLevel

This function returns a light level. The expected response value range is from 1 to 30000. The lowest values mean the highest lighting levels, and the highest values mean dark. The typical expected return values are as follows: For straight whole light, the return values are below 100. For bright rooms, the return values are about 700-800. For dark rooms, the return values are about 3500-5000. 

#### Syntax 

```visualbasic
Function GetLightLevel() As Double
```

#### Return value 

<u>[Double](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Double)</u> It is the light level. 

# GetTemperatureCelsius

This function returns a temperature in degrees Celsius. 

#### Syntax 

```visualbasic
Function GetTemperatureCelsius() As Double
```

#### Return value 

<u>[Double](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Double)</u> It is the temperature. 

# GetTemperatureFahrenheit

This function returns a temperature in degrees Fahrenheit. 

#### Syntax 

```visualbasic
Function GetTemperatureFahrenheit() As Double
```

#### Return value 

<u>[Double](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Double)</u> It is the temperature.