Code Example

// Code by Brian Patton
// 2/24/2016
//Feel free to do whatever you wish with this

int IRValue;

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  while (!Serial);
}

void loop() {
  // put your main code here, to run repeatedly:
  IRValue = analogRead(A0);
  Serial.println("IR Sensor = " + (String)IRValue);
  Serial.println(" ");
  delay(500);
  //while (true);
}