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

The **`stop`** method of the
{{domxref("Sensor")}} interface deactivates the current sensor.

## Syntax

```js
Sensor.stop()
```

### Parameters

None.

### Return value

{{jsxref('undefined')}}

## Example

```js
// TBD
```

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
