# The value 'runout' is not valid for SENSOR

**URL:** <https://klipper.discourse.group/t/the-value-runout-is-not-valid-for-sensor/3851>\
**Category:** General Discussion\
**Created:** [August 15, 2022, 6:39pm UTC](https://klipper.discourse.group/t/the-value-runout-is-not-valid-for-sensor/3851 "2022-08-15T18:39:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DGS09ZyxbSx865Jy](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@DGS09ZyxbSx865Jy](https://klipper.discourse.group/u/DGS09ZyxbSx865Jy)\
**Post date:** [August 15, 2022, 6:39pm UTC](https://klipper.discourse.group/t/the-value-runout-is-not-valid-for-sensor/3851/1 "2022-08-15T18:39:20Z")

</div>

Unclear message / error: 09:38:00 The value ‘runout’ is not valid for SENSOR  
What is the problem? Due to the error, no printing can be started.  
What was done? Runout sensor was exchanged against BIGTREETECH Smart Filament Sensor

_[printer.cfg]_  
#[filament\_switch\_sensor runout]  
#pause\_on\_runout: True  
#switch\_pin: PA5

[filament\_motion\_sensor BIGTREETECH\_Smart\_Filament\_Sensor]  
detection\_length: 10.0  
#The minimum length of filament pulled through the sensor to trigger  
#a state change on the switch\_pin  
#Default is 7 mm.  
extruder: extruder  
#The name of the extruder section this sensor is associated with.  
#This parameter must be provided.  
switch\_pin: ^PA5  
pause\_on\_runout: True  
runout\_gcode: FILAMENT\_RUNOUT  
event\_delay: 5  
pause\_delay: 1  
#See the “filament\_switch\_sensor” section for a description of the  
#above parameters.

_[macros.cfg]_  
[gcode\_macro FILAMENT\_RUNOUT]  
description: FILAMENT\_RUNOUT  
gcode:  
M300 S1 P10  
M600  
M300 S1 P10

_[Versions]:_  
klipper: v0.10.0-546-ga709ba43  
KlipperScreen: v0.2.5-27-g036ba20  
moonraker: v0.7.1-625-g413e3b2  
mainsail: v2.2.1  
System: OS-Packages

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [August 15, 2022, 8:01pm UTC](https://klipper.discourse.group/t/the-value-runout-is-not-valid-for-sensor/3851/2 "2022-08-15T20:01:18Z")

</div>

As already requested, post your klippy.log file

---

<div class="post-metadata">

**Author:** ![DGS09ZyxbSx865Jy](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@DGS09ZyxbSx865Jy](https://klipper.discourse.group/u/DGS09ZyxbSx865Jy)\
**Post date:** [August 16, 2022, 6:22pm UTC](https://klipper.discourse.group/t/the-value-runout-is-not-valid-for-sensor/3851/3 "2022-08-16T18:22:48Z")

</div>

Uploading klippy.log, klippy.zip not working always “Sorry, an error has occurred”.

upload: [Download files - Filemail](https://www.filemail.com/d/iuaemmymluhocyp)

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [August 17, 2022, 7:42am UTC](https://klipper.discourse.group/t/the-value-runout-is-not-valid-for-sensor/3851/4 "2022-08-17T07:42:37Z")

</div>

Strange. If I add this snippet to my config

```auto
[gcode_macro FILAMENT_RUNOUT]
description = FILAMENT_RUNOUT
gcode = 
	M300 S1 P10
	M600
	M300 S1 P10

[filament_motion_sensor BIGTREETECH_Smart_Filament_Sensor]
detection_length = 10.0
extruder = extruder
switch_pin = P1.27
pause_on_runout = True
runout_gcode = FILAMENT_RUNOUT
event_delay = 5
pause_delay = 1

```

it works.

Try to find out which line is actually causing the trouble, e.g. comment out `runout_gcode = FILAMENT_RUNOUT`, then see if it works. If not continue commenting out.

---

<div class="post-metadata">

**Author:** ![DGS09ZyxbSx865Jy](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@DGS09ZyxbSx865Jy](https://klipper.discourse.group/u/DGS09ZyxbSx865Jy)\
**Post date:** [August 19, 2022, 5:31pm UTC](https://klipper.discourse.group/t/the-value-runout-is-not-valid-for-sensor/3851/5 "2022-08-19T17:31:53Z")

</div>

Tried all combinations always “The value ‘runout’ is not valid for SENSOR”

> **[Download files - Filemail](https://www.filemail.com/d/unarphseklhjogi)**
>
> the-value-runout-is-not-valid-for-sensor

Try to install Klipper new?

---

<div class="post-metadata">

**Author:** ![DGS09ZyxbSx865Jy](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@DGS09ZyxbSx865Jy](https://klipper.discourse.group/u/DGS09ZyxbSx865Jy)\
**Post date:** [August 25, 2022, 7:15pm UTC](https://klipper.discourse.group/t/the-value-runout-is-not-valid-for-sensor/3851/6 "2022-08-25T19:15:01Z")

</div>

Anyone else have any ideas on how I can get the BIGTREETECH Smart Filament Sensor with klipper to work?

So far I have tried

- tried all combinations with/without #
- Reinstalled and set up Mainsail OS with Raspberry Pi Imager
- tried another BIGTREETECH Smart Filamentsensor

Unfortunately still “The value ‘runout’ is not valid for SENSOR”.

[https://www.filemail.com/d/ldrzoknxnbzfdpr](https://www.filemail.com/d/ldrzoknxnbzfdpr)

---

<div class="post-metadata">

**Author:** ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)\
**Post date:** [October 19, 2025, 1:32pm UTC](https://klipper.discourse.group/t/the-value-runout-is-not-valid-for-sensor/3851/7 "2025-10-19T13:32:21Z")

</div>


