> This page is for Firmware, version 4.0 (default).
> For other versions, use one of these documentation indexes:
> - 4.0 (default): https://docs.ouster.com/sensor-docs/firmware/4.0/llms.txt
> - 3.2: https://docs.ouster.com/sensor-docs/firmware/3.2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ouster.com/sensor-docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ouster.com/sensor-docs/_mcp/server.

# Sensor States

> Sensor operating state machine, from power-on initialization through running and standby.

On power-up, the sensor starts in the initialization phase. The state machine below shows the primary operating states and the common transitions between them. The firmware update state is isolated and independent. It can be triggered from any operating state and results in a reinitialization of the sensor only upon a successful update.

```mermaid
flowchart TD
  START((Power On)) --> INIT

  WARM[WARMUP]
  INIT[INITIALIZING]
  RUN[RUNNING]
  STBY[STANDBY]
  ERROR[ERROR]

  INIT --> RUN
  INIT --> WARM
  WARM --> INIT

  RUN -->|operating_mode = STANDBY| STBY
  STBY -->|Reinitialize| INIT

  INIT -->|ERROR_STOP| ERROR
  RUN -->|ERROR_STOP| ERROR
  RUN -->|ERROR_RESTART| INIT
  ERROR -->|Reinitialize| INIT

  classDef normal fill:#f8fafc,stroke:#334155,color:#0f172a
  classDef active fill:#eef6ff,stroke:#2563eb,color:#0f172a
  classDef warn fill:#fff7ed,stroke:#f97316,color:#0f172a
  classDef fatal fill:#fff1f2,stroke:#dc2626,color:#991b1b
  class START,INIT normal
  class WARM,UPDATE warn
  class RUN,STBY active
  class ERROR fatal
```

| Operating State | Description                                                                                                                  |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| WARMUP          | Sensor self-heats when low temperature is detected before returning to initialization.                                       |
| INITIALIZING    | Sensor boot, checks, configuration application, and recovery from non-fatal conditions.                                      |
| ERROR           | Latched fatal failure state. Motor and laser output are disabled until the fault is cleared and the sensor is reinitialized. |
| RUNNING         | Sensor has completed initialization and is producing normal output.                                                          |
| STANDBY         | Low-power mode with motor and laser output disabled while the sensor remains responsive.                                     |
| UPDATING        | Sensor is applying a firmware update and will reboot automatically when complete.                                            |