Infrared range sensor