You don't want to detach interrupts - at most you want to disable them, and then only for the minimum time necessary around access to the volatile variables. incidentally, status doesn't need to be volatile since it is not used in the main context, except for the redundant initialisation in setup().
Do you have a link to the data sheet for the IR sensor?