PIR Sensor and LCD Interface to Arduino




Liquified crystal display(LCD) has been used in many electronics circuit which has been more user-friendly after the installation of I2C.In today's ibles, I am going to display characters on the LCD depending on the values thrown by the PIR sensor.PIR sensor helps to detect if there is any motion in it's given boundary.This is achieved by the variation in its temperature emitted by the object.

Let's start building the circuit.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Components Required

Step 2: PIR Connection

Passive infrared radiationsensor shortly known as PIR sensor measures the radiation of infrared from its boundary field.Usually, the object around us radiates infrared rays which are not visible to human but these sensors are designed for such purpose.when there is a change in the temperature around its boundary the sensor sends a signal.

PIR connection is as follows:

  • The VCC pin of the sensor is connected to the positive railing of the breadboard.
  • The GND pin is connected to the negative railing of the breadboard.
  • The signal pin is connected to the digital pin 2 of the Arduino board.

Step 3: LCD Connection

LCD has the I2C installed in it.I2C is a powerful tool and which is used to reduce the hectic of wires required to connect LCD to any microcontroller.After the installation of the I2C, the number of wire reduced to 4.

The connection of the Arduino is as follows:

  • The VCC pin of the LCD is connected to the positive railing of the breadboard.
  • The GND pin is connected to the negative railing of the breadboard.
  • The SDA or data line is connected to the A4 of the Arduino.
  • The SCL or clock line is connected to the A5 of the Arduino.

Step 4: Coding

#include "wire.h"
#include "dht.h"
#include "LiquidCrystal_I2C.h"
dht DHT;
#define DHT11_PIN 2;
void setup(){
void loop(){
int chk = DHT.read11(DHT11_PIN);
Serial.print("Temperature = ");
lcd.print("Temperature = ");
Serial.print("Humidity = ");
lcd.println("Humidity = ");

Step 5: Output

Makerspace Contest 2017

Participated in the
Makerspace Contest 2017

Be the First to Share


    • Book Character Costume Challenge

      Book Character Costume Challenge
    • Made with Math Contest

      Made with Math Contest
    • Cardboard Speed Challenge

      Cardboard Speed Challenge

    5 Discussions


    4 months ago

    Please change the post code because we do not talk about DHT but the PIR sensor.


    1 year ago

    Arduino: 1.8.4 (Windows 7), Board: "Arduino Nano, ATmega328P"

    Build options changed, rebuilding all

    C:\Users\Asus\Documents\Arduino\sketch_nov01a\sketch_nov01a.ino:1:18: fatal error: wire.h: No such file or directory

    #include <wire.h>


    compilation terminated.

    exit status 1

    Error compiling for board Arduino Nano.

    This report would have more information with

    "Show verbose output during compilation"

    option enabled in File -> Preferences.