EasyManua.ls Logo

Elegoo Mega2560 - Page 95

Elegoo Mega2560
224 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
95
/
223
As you can see we only need 3 connections to the sensor, since one of the pin is not
used.
The connections are: Voltage, Ground and Signal which can be connected to any Pin
on our MEGA2560.
Code
After wiring, please open the program in the code folder- Lesson 12 DHT11
Temperature and Humidity Sensor and click UPLOAD to upload the program. See
Lesson 2 for details about program uploading if there are any errors.
Before you can run this, make sure that you have installed the < SimpleDHT> library
or re-install it, if necessary. Otherwise, your code won't work.
For details about the tutorial on the loading of library file, see Lesson 1.
Example picture

Table of Contents