Digital temperature humidity sensor