Practical 2 IOT
Practical 2 IOT
Objective:
sensor
Theory:
· The DHT11 temperature and humidity sensor is a nice little module that
provides digital temperature and humidity readings. It’s really easy to set up,
and only requires one wire for the data signal.
· These sensors are frequently used in remote weather stations, soil monitors,
and home environment control systems.
There are two variants of the DHT11 you’re likely to come across. One is a four
pin stand-alone module, and the other is a three pin,PCB mounted module.
The pinout is different for each one, so connect the DHT11 according to which
one you have:
Programming the DHT11 in Python
We will be using the Adafruit DHT11 Python library. We can download the
library using Git,so if you don’t have Git installed on your Pi already, enter this
at the command prompt:
cd Adafruit_Python_DHT
3. Enter this:
import Adafruit_DHT
while True:
Question
What type of temperature sensors are commonly used with Raspberry Pi,
and what are their operating principles?
How can data obtained from the sensor be processed and visualized on
the Raspberry Pi?
Conclusion: