# llSensorRemove

*LSL function*

```lsl
void llSensorRemove();
```

- Energy: 10

Removes the sensor setup by [llSensorRepeat](/functions/llSensorRepeat/).

There are no parameters or return value for this function, as only one [llSensorRepeat](/functions/llSensorRepeat/) can be specified per script.

```lsl title="How to use" frame="terminal"
llSensorRemove();
```

## Caveats

- If called within the [sensor](/events/sensor/) event then it also removes all of the sensor data that is accessed by the [detection](/categories/detected/) functions.

## Examples

<details open>
<summary>The following basic example shows an object that when touched starts scanning for avatars in 10m every 30 seconds, and stops as soon as at least one is found, and returns their name.</summary>

```lsl
default {
    touch_start(integer x) {
        llSensorRepeat("", NULL_KEY, AGENT, 10.0, PI, 30.0);
    }

    sensor(integer x) {
        llSay(0, llDetectedName(0) + " was found first!");
        llSensorRemove();
    }
}
```

</details>

## See also

### Functions

- [llSensorRepeat](/functions/llSensorRepeat/) — Scans for agents or objects every time period
- [llSensor](/functions/llSensor/) — Runs a sensor once

### Events

- [sensor](/events/sensor/) — Triggered when a sensor detects something
- [no_sensor](/events/no_sensor/) — Triggered when a sensor detects nothing

---

*Source: [LlSensorRemove](https://wiki.secondlife.com/wiki/LlSensorRemove) on the Second Life Wiki. Content from the Second Life Wiki article LlSensorRemove (revision 1198868, 2016-01-17), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llSensorRemove/
