newbie question on question convertiing celsius to fahrenheit

I’m trying to convert celsius to fahrenheit with this code and being green as they get I have not found the proper way to do it. I have tried several variations to make the change but with no success. It’s not a lot of code and I feel I’m missing something minor or completely obvious. Is there anyone out there with the time to help an old man learn a new trick? I appreciate any and all help I can find. This is the code I’m using to control a 16 x 2 lcd display, it displays fine in celsius, but being in the U.S fahrenheit is the way. Can this be done with the following code? And again, thanks again for any help. C
// include the library code:
#include <LiquidCrystal.h>
#include “DHT.h”

// set the DHT Pin
#define DHTPIN 8

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
#define DHTTYPE DHT11

void setup() {
// set up the LCD’s number of columns and rows:
lcd.begin(16, 2);

// Print a message to the LCD.
lcd.print(“Temp: Humidity:”);

void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// read humidity
float h = dht.readHumidity();
//read temperature in Fahrenheit
float f = dht.readTemperature(true);

if (isnan(h) || isnan(f)) {


Not sure what your point here is.

To enumerate a Celsius temperature in Fahrenheit, you multiply by 9, divide by 5 and then add 32.

Also the DHT libraries that I have used have had member functions to convert C to F. Check the documentation for the library that you are using.