IOTA is an open-source distributed ledger. It uses a directed acyclic graph (DAG) instead of a blockchain.
IOTA's DAG is referred to as the tangle, and is a generalization of the block chain protocol.
Compress the DHTLib folder, see: Arduino/libraries/DHTLib
You will get: DHTLib.zip
Add the DHTLib library to your Arduino IDE.
Start Arduino IDE.
Select menu: Sketch>Include Library>Add .ZIP Library and select the DHTLib.zip file.
The library is now added.
There is another way to add Rob Tillaart library (You do not need to use my DHTLib.zip file):
Select menu: Sketch > Include Library > Manage libraries
In the Library Manager search for: DHTlib
Select this package and install its latest version.
Upload the dht11.ino sketch, which you can find in the dht11-arduino-uno project, to the Arduino Uno and run this sketch.
Connect the Arduino Uno to your computer using the USB cable.
Start Arduino IDE.
Select the board, select menu: Tools > Board > Arduino/Genuino Uno
Select the port, select menu: Tools > Port > /dev/cu.usbmodem1421 (Arduino/Genuino Uno)
Note: Your port name may differ.
Upload the dht11.ino sketch, select menu: File > Select the dht11.ino file.
Press the verify button to verify the sketch. Make sure there are no errors.
Press the upload button to upload the sketch to the Arduino Uno.
Open the Serial monitor, select menu: Tools > Serial Monitor.
Make sure the baud rate is set to 9600 baud (bottom right)
The humidity and temperature data are displayed at 30 seconds intervals.
CLOSE THE SERIAL MONITOR WHEN YOU CONTINUE WITH THE NEXT STEPS.
Execute the dht.js Node application to display the humidity and temperature data on your computer.
First find the serial port your computer is communicating with your Arduino Uno:
Open a terminal
Goto the dht11-arduino-uno project and type: node listports.js
For example you see the following:
/dev/tty.Bluetooth-Incoming-Port
/dev/tty.usbmodem1421 (This is the one I am using, yours may differ)
Note:
On a macOS, instead of using the above mentioned application, type: ls /dev/tty.*
Make sure the serial port is not used.
IF THE SERIAL MONITOR IS RUNNING, STOP IT.
To verify if the serial port is not used, type (for macOS): lsof | grep "/dev/tty.usbmodem1421"
If the serial port is NOT used, nothing should be returned.