Thanks!
I received the sensor.
Now I'm working on the code and I can't seem to locate analogue input numbers for the code that I'm writing for the Arduino. Do you know what they are or where I can find them?
The code that I have written so far is:
Code:
int analogPin=A0;
int analogValue=0;
void setup() {
Serial.begin(9600);
pinMode(12, OUTPUT);
}
void loop() {
analogValue = analogRead(analogPin);
Serial.println(analogValue);
if (analogValue > .25){ // analogValue WILL NOT BE A DECIMAL NUMBER. LOOK AT THE SERIAL MONITOR TO SEE ACTUAL NUMBERS
delay(3000); //wait 3 seconds...
digitalWrite(12, LOW); //turn fan off
} else if (analogValue <.25){ // analogValue WILL NOT BE A DECIMAL NUMBER. LOOK AT THE SERIAL MONITOR TO SEE ACTUAL NUMBERS
delay(1000); //wait 1 second...
digitalWrite(12, HIGH); //turn fan on
}
My Arduino/IR Sensor set up is attached if you're curious.
help?
Thanks!