Code for humidity meter (main comp)