---
title: "Door sensor animated icon"
description: "Door sensor animated icon (Smart Home). Light: the magnet slides 4.5 units away from the sensor as the door opens, then two alert arcs appear. Strong: the magnet is yanked 5.5 units and settles while the arcs snap in quickly. The open state is retained; preview reset rearms."
canonical: https://generativeicons.com/icons/door-sensor/
---

# Door sensor animated icon

Light: the magnet slides 4.5 units away from the sensor as the door opens, then two alert arcs appear. Strong: the magnet is yanked 5.5 units and settles while the arcs snap in quickly. The open state is retained; preview reset rearms.

- Id: `door-sensor`
- Category: Smart Home
- Search terms: contact sensor, entry sensor, magnetic sensor, window sensor, door alarm, door open, intrusion alert, burglar alarm, home security, reed switch
- Two states: prepared to result, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/door-sensor.lottie (dotLottie, 9651 bytes, sha256 6cb2d7b34c2a67945e9efa0706c8526e37143bd327185577ba35ccb3f8857ebd)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add door-sensor
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/door-sensor.mjs';

export function DoorSensorIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/door-sensor.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/door-sensor/ · https://generativeicons.com/api/icons/door-sensor
