Issue with infrared based circuit