start with a working example sending just a number to a nextion (I'm sure there are plenty of examples out there)
then write another piece of code reading a sensor like your dht22 and printing to the Serial console. (I'm sure there are plenty of examples out there)
then merge both codes or try to and post you attempt.... then we have something we can discuss about.
Good idea. Tomorow I will try it. ;D
@ArduinoRGW will be spending some time away from the forum for vandalism.
The original post cannot be restored; Google Search had not made a snapshot in time.