Hook Up the Sensors (Optional)
If you’re using external sensors, hook them up to the Raspberry Pi.
In general, any sensor you purchase will come with instructions which denote the required power and connectivity options you’ll need.
Here are a few links for more information on the recommended sensors:
• DHT11
• HC-SR04
Next,
copy the scripts to your Raspberry Pi.