Error evaluating 'gcode_macro START_PRINT:gcode': gcode.CommandError: Filament not detected! Toolhea

I tried to configure the Orbiter Filament Sensor using the below in printer.cfg and anytime I print I get this error.

[filament_switch_sensor toolhead_filament_sensor_t0]
pause_on_runout: False
event_delay: 0.1
switch_pin: ^!toolboard_t0:PB3
runout_gcode:
_ON_TOOLHEAD_FILAMENT_SENSOR_RUNOUT TOOLHEAD=0
insert_gcode:
_ON_TOOLHEAD_FILAMENT_SENSOR_INSERT TOOLHEAD=0

[gcode_button toolhead_filament_sensor_button_t0]
pin: ^!toolboard_t0:PB4
release_gcode:
_ON_FILAMENT_SENSOR_BUTTON_PRESSED TOOLHEAD=0
press_gcode:

#[include OrbiterSensor.cfg]

BTW, removing the negation on the switch_pin seems to work.
Was this page helpful?