Fixed IR sensor reading timing.