MQ-2 Gas Sensor Module

(25 customer reviews)

$10.95

12 in stock

Description

Gas Sensor Module Code


/*******
 code from:
 https://www.hackster.io/Aritro
*******/
 
int redLed = 12;
int greenLed = 11;
int buzzer = 10;
int smokeA0 = A5;
// Your threshold value
int sensorThres = 400;

void setup() {
  pinMode(redLed, OUTPUT);
  pinMode(greenLed, OUTPUT);
  pinMode(buzzer, OUTPUT);
  pinMode(smokeA0, INPUT);
  Serial.begin(9600);
}
void loop() {
  int analogSensor = analogRead(smokeA0);
  Serial.print("Pin A0: ");
  Serial.println(analogSensor);
  // Checks if it has reached the threshold value
  if (analogSensor > sensorThres)
  {
    digitalWrite(redLed, HIGH);
    digitalWrite(greenLed, LOW);
    tone(buzzer, 1000, 200);
  }
  else
  {
    digitalWrite(redLed, LOW);
    digitalWrite(greenLed, HIGH);
    noTone(buzzer);
  }
  delay(100);
}

 

  1. Mrhwjw

    atorvastatin 80mg pills order atorvastatin buy lipitor 80mg online cheap

  2. Xttter

    buy generic ciprofloxacin for sale – order cipro 1000mg augmentin 625mg pills

  3. Ffktpg

    ciprofloxacin without prescription – amoxiclav pills augmentin 625mg usa

  4. Sbltli

    metronidazole drug – cleocin 150mg pill order zithromax 250mg online cheap

  5. Rvzroy

    buy ciplox 500 mg for sale – buy tinidazole 500mg online cheap erythromycin 250mg over the counter

  6. Mgzqec

    buy valtrex without a prescription – buy valacyclovir 500mg generic zovirax pills

  7. Diywnb

    buy ivermectin 3mg for humans – how to buy sumycin order sumycin 250mg generic

  8. Ebjoey

    purchase ampicillin without prescription cheap amoxil generic amoxicillin brand

  9. Tngsen

    generic furosemide – tacrolimus 1mg ca order captopril 25mg without prescription

  10. Izxutg

    glucophage online – lincocin 500mg without prescription buy lincomycin generic

  11. Vrgcfv

    purchase retrovir online – zyloprim over the counter allopurinol pill

  12. Tapvlw

    buy generic clozaril for sale – buy altace 10mg for sale famotidine 20mg pills

  13. Jcegem

    purchase quetiapine online cheap – buy luvox tablets purchase eskalith online cheap

  14. Nelodc

    order anafranil sale – generic asendin 50 mg order sinequan 75mg

  15. Xfrebt

    order atarax – order escitalopram online purchase amitriptyline online cheap

  16. Pnkzzh

    cheap generic amoxil – generic cefadroxil 250mg cost cipro

  17. Uofjkt

    purchase amoxiclav pills – septra over the counter buy ciprofloxacin 500mg online cheap

  18. Qohqgs

    order generic cleocin – brand chloromycetin chloromycetin drug

  19. Bqwrbi

    zithromax 500mg cost – buy generic flagyl order ciplox sale

  20. Hixico

    ventolin for sale – order theophylline 400mg for sale buy cheap theo-24 Cr

  21. Eiechj

    ivermectina 6mg – eryc 250mg ca generic cefaclor 500mg

  22. Csitkm

    clarinex buy online – cheap ketotifen order ventolin 2mg

  23. Gbpfmg

    buy medrol 16mg online – buy singulair 10mg pills buy azelastine 10ml generic

  24. Aqiewn

    glyburide canada – forxiga tablet dapagliflozin canada

  25. Rjjamo

    prandin 2mg cost – prandin canada empagliflozin 25mg tablet

Add a review

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