I not sure if this feature already exists or if it's even possible, but sometimes after auto calibration with ir-sensor on my mini kossel I get very strange deviation results. Which I believe is a result of interference from strong sun light or my LED desk lamp. These usually results in printing to close to the bed.
I can see in the console that the deviation values are much higher than normal when this happens. Is it possible to add a threshold value so that it will abort the print if the deviation value is to high?