Flame Detector Module

(14 customer reviews)

$7.95

17 in stock

Description

Flame Detector Module Code


/* SETUP

Flame Sensor    Arduino
A0        -     A0
GND       -     GND
+         -     5V
*/
 
// lowest and highest sensor readings
const int sensorMin = 0;    // sensor minimum
const int sensorMax = 1024;   // sensor maximum

void setup() {
  Serial.begin(9600);   // initialize serial communication @ 9600 baud  
}

void loop() {
  int sensorReading = analogRead(A0);   // read the sensor on analog A0
  int range = map(sensorReading, sensorMin, sensorMax, 0, 3);// map the sensor range (four options)
  // ex: 'long int map(long int, long int, long int, long int, long int)'
  
  switch (range) {    // range value
  case 0:   // A fire closer than 1.5 feet away.
    Serial.println("** Close Fire **");
    break;
  case 1:   // A fire between 1-3 feet away.
    Serial.println("** Distant Fire **");
    break;
  case 2:   // No fire detected.
    Serial.println("No Fire");
    break;
  }
  delay(1);   // delay between reads
}

 

Additional information

Weight 0.003 kg
  1. Altmwa

    buy lipitor for sale buy lipitor 10mg generic buy lipitor 80mg for sale

  2. Fhrrwt

    ciprofloxacin 1000mg canada – buy septra sale order augmentin 625mg online

  3. Zhfiqj

    order generic cipro – augmentin 1000mg brand augmentin 1000mg pill

  4. Mwefzn

    buy flagyl – order generic cefaclor zithromax 500mg price

  5. Rkaght

    purchase ciplox online – buy generic tindamax for sale buy erythromycin 250mg pills

  6. Tnyuhp

    valacyclovir 500mg canada – order starlix 120 mg pill order zovirax 800mg

  7. Legjts

    ivermectin 3mg without prescription – buy cheap generic ceftin tetracycline 250mg pills

  8. Qzbvqg

    flagyl generic – cefaclor cost zithromax brand

  9. Mgdcyb

    buy acillin paypal oral doxycycline cheap amoxil sale

  10. Jpzgnf

    generic lasix 40mg – buy furosemide without prescription order captopril 25 mg online

  11. Xvwfyb

    glycomet 1000mg pill – buy duricef 250mg for sale lincomycin 500 mg for sale

  12. Voobcf

    zidovudine 300 mg usa – order rulide buy zyloprim generic

  13. Xhnuzj

    generic clozapine – buy generic accupril over the counter pepcid ca

  14. Aegobq

    quetiapine buy online – buy luvox online eskalith ca

Add a review

Your email address will not be published. Required fields are marked *