---
tag: m0102
title: Configure Bed Distance Sensor
brief: Set parameters for the Bed Distance Sensor.
author: thinkyhead

group: calibration
since: 2.1.1
requires: BD_SENSOR

codes: [ M102 ]

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.)

---

Set the state or trigger distance (in 0.1mm units) for the Bed Distance Sensor.
