Arduino UNO R4 Wifi IOT Weather Station

start by testing each device in a separate program
when you know they work start building your weather station

do a web search for examples and libraries which support the devices, e.g. arduino-dht22