https://www.amazon.co.uk/gp/product/B07FM8BMWD/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1
Positive (+) to 3.3v
Out to Gpio pin, (in this case 17)
Negative (-) to Ground
GND to Ground
VCC to 5v
SDA to GPIO2 (SDA)
SCL to GPIO3 (SCL)
sudo apt-get install python3-pip
git clone https://github.com/tomdoyle87/DHT22-LCD-SNMP.git
cd DHT22-LCD-SNMP
cp {DHT-hum-snmp.py,DHT-temp-snmp.py} ~
touch ~/humid.txt ~/temp.txt
pip3 install adafruit-circuitpython-dht
pip3 install board
sudo cp {humid,temp} /usr/local/bin/
sudo chmod 755 {/usr/local/bin/humid,/usr/local/bin/temp}
Now add the following to /etc/snmp/snmpd.conf:
pass .1.3.6.1.2.1.25.1.8.2 /bin/sh /usr/local/bin/temp
pass .1.3.6.1.2.1.25.1.8.1 /bin/sh /usr/local/bin/humid
cp display.py ~
sudo apt-get install i2c-tools
pip3 install smbus
pip3 install vcgencmd
pip3 install datetime
sudo cp {get-temp.service,get-temp.timer,lcd-temperature.service,lcd-temperature.timer} /etc/systemd/system/
sudo systemctl enable get-temp.timer
sudo systemctl start get-temp.timer
sudo systemctl enable lcd-temperature.timer
sudo systemctl start lcd-temperature.timer
http://www.kbza.org/2013/07/04/sensor-de-temperatura-snmp-con-raspberry-y-cacti/
https://howchoo.com/pi/how-to-make-a-raspberry-pi-smart-alarm-clock
https://github.com/fede2cr/raspberry-pi_snmp/tree/master/sensor-DHT
https://osoyoo.com/2016/12/01/use-raspberry-pi-display-temperaturehumidity-to-i2c-lcd-screen/