This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int LED = 13; | |
int inputPin = 2; | |
int PIR_STATE = LOW; | |
int VALUE = 0; | |
void setup() { | |
pinMode( LED, OUTPUT ); | |
Serial.begin( 9600 ); | |
} |