infrared sensor based temperature control for