Tool touches box, sensor to give a contact signal