Dimmer a light while doing something else

it seems I am not the only one

it looks like this temp sensor does not work properly with the interrupts