Paste this start script into your slicer.
G28 ; Home |
* M851 Z-0.5 - Nozzle's distance to the bed at which the IR sensor should trigger. You can change this value according to how you set the IR sensor. If you have set the IR sensor to trigger a distance of 1mm from bed to nozzle, -1 must be entered here.