Hi @felmue and thanks for the help. I changed GPIO and it works now. Strange as input port 2 worked when the temperature sensor were implemented separably.
However I have spend enough time trying to make it work. So I will not conplain now that it is working.