This might not be the cause of the problem, but it is a problem for the logic of your code anyway. Let us suppose that the temperature is 0.5. It would satisfy both conditions to light up green and blue pins simultaneously.
This might not be the cause of the problem, but it is a problem for the logic of your code anyway. Let us suppose that the temperature is 0.5. It would satisfy both conditions to light up green and blue pins simultaneously.