Skip to content

Instantly share code, notes, and snippets.

View JimishF's full-sized avatar

Jimish Fotariya JimishF

View GitHub Profile
int ProxSensor = A0;
int inputVal = 0;
void setup()
{
pinMode(13, OUTPUT); // Pin 13 has an LED connected on most Arduino boards:
pinMode(ProxSensor,INPUT); // Pin 2 is connected to the output of proximity sensor
Serial.begin(9600);
}
@JimishF
JimishF / pir_example.ino
Last active January 31, 2018 11:00
A  PIR (passive infrared sensor) sensor is an electronic sensor that measures Infrared (IR) light radiating from objects in its field of view.
int LED = 13;
int inputPin = 2;
int PIR_STATE = LOW;
int VALUE = 0;
void setup() {
pinMode( LED, OUTPUT );
Serial.begin( 9600 );
}