International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 02 | Feb -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 380
USING RASPBERRY PI TO SENSE TEMPRATURE AND RELATIVE
HUMIDITY
Shah Vatsal
1
, Mehta Bhavin
2
1
Student,Dept. Of Mechanical Engineering, CHARUSAT, Changa, INDIA
2
Assistant Professor, Dept. Of Mechanical Engineering, CHARUSAT, Changa, INDIA
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract -This paper presents the detection of real time
temperature and relative humidity employing raspberry pi.
This is a raspberry pi based temperature and humidity
logger that uses DHT22 sensor for measurement and it is
unique as it not only reads temperature from sensor but also
stores data to mysql database and provide means to read
that temperature data with any web enabled device
(computer,phone)web browser. Python language is used.
Key Words: Python, Raspberry pi, DHT22 temperature
sensor, mysql database
1.INTRODUCTION
Temperature has an impact on almost all the activities
surrounding us[2]. A precise determination of
temperature and more importantly relative humidity is a
vital factor in countless industries and different fields of
science. The temperature monitoring is crucial in lot of
industries, like food industry, the workshop and
pharmaceutical industry. Analog and digital Temperature
sensors are available for sensing temperature for
commercial purpose. Temperature sensors possessing
temperature-dependent properties that can be measured
electrically contain resistors, semiconductor mechanisms
such as diodes, thermocouples, thermistors. This project
aims at monitoring the real time temperature and relative
humidity in a cost effective way. Here the monitoring node
is raspberry pi. Programming language used for raspberry
pi is Python. The Sensor utilized here is DHT22
temperature sensor. This sensor consists of thermistor
and basic advantage of using DHT22 sensor is that it is
economical and light in weight. The sensor is interfaced
with the raspberry pi using jumper wires. The
temperature is sensed using the sensor DHT22 and is
read, stored and displayed by the raspberry pi kit.
2. Raspberry pi
The Raspberry Pi is a low cost, credit-card sized computer
which plugs into a computer monitor or TV, and requires a
standard keyboard and mouse. Raspberry Pi is a dynamic
microcontroller and runs with the Python programming
language.Raspberry Pi 2 includes a quad-core Cortex A7
processor CPU running at 900 MHz and 1 GB RAM,
Integrated Video core 4 Graphics Processing
Constituent (GPU) capable of frolicking Maximum
1080p Elevated Meaning Blu-Ray Quality Video,512Mb
SDRAM, The free, flexible and exceedingly builder
approachable Debian GNU/Linux(RASPBIAN)Operating
System, 2 x USB Ports, HDMI Video Output, RCA Video
Output,3.5mm Audio Output Jack,10/100Mb Ethernet Port
for Internet Access, 5V Micro USB Domination Input Jack,
Micro SDHC card, MMC,40 gpio pins[2]. It has capability of
a little device that allows people of all ages to explore
computing. It’s capable of doing everything you would
expect a desktop/computer to do, from browsing the
internet and playing high-definition video to making
spreadsheets, word processing, and playing games . The
Raspberry Pi has the ability to interact with the outside
world, and has been used in a wide array projects like
smart home monitoring system, wireless motion sensor
activated light and many more.
Fig-1: Raspberry pi 2 model b