UART- PIR sensor intruder detection

UART -PIR sensor intruder detection using arduino mega
This is a series of simple projects aimed at getting started with Arduino. This will cover most of the important peripherals of the Arduino starting from simple Digital I/Os and serial communication interfaces.
1:UART-Digital I/O control using serial port.
2:UART-Digital I/O control .
3:UART-Digtial Thermometer.
4:UART-PIR sensor intruder detection.
In this experiment we are going to see the
PIR sensor intruder detection :
connect the PIR sensor as a analog input and a led pin as output to pin 13 and power supply 5v and ground.
when the pressure is detected , led turns on and displays "intruder detected" in serial monitor .
when the pressure is not detected the led turns off .