---
tag: m0102
title: Configure Bed Distance Sensor
brief: Set the state or trigger distance (in 0.1mm units) for the Bed Distance Sensor.
author: thinkyhead

since: 2.1.1
requires: BD_SENSOR
group: calibration

codes: [ M102 ]

notes:
  - Requires `BD_SENSOR`.

parameters:
  -
    tag: S
    description: Set the Bed Distance Sensor state and trigger distance.
    values:
      - tag: -6
        description: Start Calibration
      - tag: -5
        description: Read raw Calibration data
      - tag: -1
        description: Read sensor information
      - tag: 0
        description: Disable Adjustable Z Height
      - tag: ">0"
        description: Set Adjustable Z Height in 0.1mm units (e.g., `M102 S4` enables adjusting for Z <= 0.4mm.)

---
