adding IR sensor to the firmware