led ir reading functions