Put thermomoter code in separate module