the humidity level is not important, i will define a maximum level but i need a complete and correct algorithm.