Showing DS18B20 temperature sensor data in Nextion screen

Members do not like to have to download code. Read the forum guidelines to see how to properly post code and some good information on making a good post.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

Isn't the type wrong?

Are there any examples that come with the DS18B20 library? Do the examples us a begin() statement?

You failed to include a dht library or create a dht object. How do you expect to read a
non-existent dht sensor?