Here are the relevant parts of my config:
[probe]
pin: EBBCan: PB5
x_offset: 0
y_offset: 0
speed: 5
samples: 5
samples_result: average
sample_retract_dist: 1.0
samples_tolerance: 0.005
samples_tolerance_retries: 10
activate_gcode:
{% set PROBE_TEMP = 150 %}
{% set MAX_TEMP = PROBE_TEMP + 5 %}
{% set ACTUAL_TEMP = printer.extruder.temperature %}
{% set TARGET_TEMP = printer.extruder.target %}
{% if TARGET_TEMP > PROBE_TEMP %}
{ action_respond_info('Extruder temperature target of %.1fC is too high, lowering to %.1fC' % (TARGET_TEMP, PROBE_TEMP)) }
M109 S{ PROBE_TEMP }
{% else %}
# Temperature target is already low enough, but nozzle may still be too hot.
{% if ACTUAL_TEMP > MAX_TEMP %}
{ action_respond_info('Extruder temperature %.1fC is still too high, waiting until below %.1fC' % (ACTUAL_TEMP, MAX_TEMP)) }
TEMPERATURE_WAIT SENSOR=extruder MAXIMUM={ MAX_TEMP }
{% endif %}
{% endif %}
---
[quad_gantry_level]
gantry_corners:
-60,-10
410,420
points:
50,25
50,300
300,300
300,25
speed: 150
horizontal_move_z: 10
retries: 20
retry_tolerance: 0.005
max_adjust: 10