---
title: Sensor.activated
slug: Web/API/Sensor/activated
tags:
  - API
  - Generic Sensor API
  - Property
  - Reference
  - Sensor
  - Sensor APIs
  - Sensors
  - activated
browser-compat: api.Sensor.activated
---
{{APIRef("Sensor API")}}

The **`activated`** read-only property
of the {{domxref("Sensor")}} interface returns a boolean value indicating
whether the sensor is active.

## Syntax

```js
var boolean = sensorInstance.activated
```

Because {{domxref('Sensor')}} is a base class, `activated` may only be read
from one of its derived classes.

### Value

A boolean value.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
