klipper for Bed Distance Sensor this code is not updated, please see https://github.com/markniu/Bed_Distance_sensor/tree/new/klipper