Note: The receiver module, even though copy and pasted from my working project with only minor easy to use improvements has some undefined behaviour. likely you will need to debounce the IR receiver signal as this appears to be the only change between the app note and the project. there is an additional app note provided on how to do this.