adding firmware for the IR sensor

Still to be integrated into the main code though