I had previously used the Adafruit code but found it unreliable and rather restrictive.
I now use Joan's pigpio code, and found it quite reliable.
I wrote my own wrapper around the DHT.py module to make things easier (Joan writes great code, but the documentation is very sparse). This has been running ...
Run my DHTXX script.
It requires the pigpio daemon do be running.
It expects the Broadcom number of the GPIO connected to the data line.
E.g. ./DHT.py 4 to read a sensor connected to pin 7.
Refer to https://pinout.xyz/
I have found it easier to change the cmdline.txt and config.txt first then use the following command:
Hostname being the pi's hostname. The user being the username of the pi you want to ssh into. It will then ask you for your password.
password being your pi's password for the user you have selected.
You can set a special SSID (WiFi network) to the wpa_supplicant.conf:
Add these details of your SSID to that config file like:
You can find more about it here.
I do not want to edit wpa_supplicant.conf every time it discover