# Sensor registration

> The device's security sensor registered with the realm when the device enrolls, with no secret of its own on the device and no registration port.

When a device enrolls, the realm registers its security sensor for it. The device never registers itself, and the
key its sensor's messages are protected with never leaves the realm. There's no enrollment password to share, no
registration port to open, and nothing on the device worth stealing to impersonate it.

## Before you begin

- **Who:** whoever enrolls the device; nothing more is needed for its sensor.
- **Where:** nowhere of its own: it happens during [Device enrollment](../../../endpoint-management/enrollment/device-enrollment/).

## How it works

At enrollment, the realm registers a sensor for the device in your realm and gives it your realm's
[group configuration](../group-configuration/). The device's grant carries the sensor's id and name; the sensor's
name is the device's name. From then on, every message from the sensor travels inside the device's own connection
(see [Device event delivery](../../security-log/event-delivery/)).

The sensor's id is how Detection & Response names the device: see the [API reference](../../api/).

## Set it up

Nothing. It comes with [Device enrollment](../../../endpoint-management/enrollment/device-enrollment/).

## Limits and defaults

| Limit | Value |
|---|---|
| Sensors per device | One, registered at enrollment |
| Realm a sensor reports to | The realm the device enrolled into, and no other |

## Good to know

- **One registration per enrollment.** If enrollment fails partway, the sensor it registered is removed.
- **Into your realm, and no other.** A registration lands in your realm's own group; nothing a device sends can move
  it.
- **Removed with the device.** [Device removal](../../../endpoint-management/revoke-and-remove/removal/) deletes its
  sensor's registration.

## Troubleshooting

| Symptom | Cause | Fix |
|---|---|---|
| Enrollment is refused because the name is taken | Another device was registered under the same name | Enroll the device under another name |
| A device enrolled but its sensor shows `never` | The device client hasn't connected since enrolling | Check the device client is running on the device |

## Audit record

Registration writes no audit record of its own. The sensor's registration time is `registered` in the sensors list.

## Related

- [Device enrollment](../../../endpoint-management/enrollment/device-enrollment/): the rest of what a device receives.
- [Device event delivery](../../security-log/event-delivery/): what happens to the sensor's messages.
