float temperature = sensors.getTempCByIndex(0);
if(temperature == 25) {
I think that you need to be careful using equality with float data types.
Maybe?
if(temperature > 25.0 && temperature < 26.0) {
float temperature = sensors.getTempCByIndex(0);
if(temperature == 25) {
I think that you need to be careful using equality with float data types.
Maybe?
if(temperature > 25.0 && temperature < 26.0) {