Updated script for humidity sensor