added lcd support and changed the tempfunction to more precision