The air conditioner works while/when the room temperature is less than 10℃.
I would like to know whether using the word "while" in the above sentence I created is incorrect.
I googled the expression "while the temperature is less than" and found only two results, and then googled the expression "when the temperature is less than" and found a great number of results.