i use this sensor and this libraries > Arduino Playground - Sensirion
Arduino Playground - HomePage
in serial monitor this libraries output only temperature in C
can anyone help me how to about put temperature in F?
i use this sensor and this libraries > Arduino Playground - Sensirion
Arduino Playground - HomePage
in serial monitor this libraries output only temperature in C
can anyone help me how to about put temperature in F?
Try:
void logData() {
Serial.print("Temperature = "); Serial.print(temperature * 1.8 + 32);
Serial.print(" F, Humidity = "); Serial.print(humidity);
Serial.print(" %, Dewpoint = "); Serial.print(dewpoint * 1.8 + 32);
Serial.println(" F");
}
outsider:
Try:void logData() {
Serial.print("Temperature = "); Serial.print(temperature * 1.8 + 32);
Serial.print(" F, Humidity = "); Serial.print(humidity);
Serial.print(" %, Dewpoint = "); Serial.print(dewpoint * 1.8 + 32);
Serial.println(" F");
}
this work! thank you! ![]()