This is the same code that was used in the video to control the lights, fans and for IR communication