Follow the instructions on this page to get Raspberry Pi OS running https://www.raspberrypi.org/downloads/raspberry-pi-os/
sudo apt-get update
sudo apt-get upgrade
Use PI menu \[preference]\[Add / remove software] and install IDLE
sudo apt-get install python3-pip
sudo pip3 install Adafruit_DHT
cd ~
git clone https://github.com/nysbc/SEMCf
sudo crontab -e
Add:
@reboot sudo python /home/pi/temhum/temhum.py >/home/pi/logs/cronlog.txt
Enable I2C bus on the Raspberry Pi by following this:
https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c
You can confirm that the setup worked and sensors are present with sudo i2cdetect -y 1
Run the sample code below:
cd ~/Raspberry-Pi-sample-code
sudo python i2c.py
When the code starts up a list of commands will be shown.
For more details on the commands & responses, please refer to the Datasheets of the Atlas Scientific Sensors.