ir laser control with temperature estimation ready