MQ-2 Gas Sensor Module

(34 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

  26. Noabem

    glycomet 1000mg cost – purchase sitagliptin for sale order precose 50mg without prescription

  27. Iukpua

    buy cheap generic terbinafine – order fulvicin 250 mg online cheap buy grifulvin v

  28. Gveslt

    semaglutide 14 mg pill – cost semaglutide 14 mg where can i buy desmopressin

  29. Bbxmxd

    buy ketoconazole generic – nizoral 200mg without prescription sporanox tablet

  30. Ipmmct

    purchase famvir without prescription – order generic valcivir 1000mg valaciclovir 500mg pill

  31. Xmbjzp

    order hydrochlorothiazide without prescription – purchase hydrochlorothiazide without prescription cheap bisoprolol 5mg

  32. Wzubxo

    purchase metoprolol pill – order losartan 50mg without prescription nifedipine without prescription

  33. Nohzep

    generic nitroglycerin – catapres pills buy valsartan paypal

  34. Dbrudr

    rosuvastatin sunday – caduet pills equipment caduet buy weakness

Add a review

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