It is very simple. You have to make a python file and to follow a few steps.
Can you read this post? DHT11/DHT22 with Raspberry Pi
It has nice wiring diagrams and code and it is explained step by step
1 Like