MQ-2 Gas Sensor Module

(23 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. Nuqhsf

    cheap yasmin – buy cheap ginette 35 purchase anastrozole without prescription

  2. Gytmoc

    buy cabergoline 0.25mg pills – premarin 600 mg brand buy alesse generic

  3. Ygbquz

    гѓ—гѓ¬гѓ‰гѓ‹гѓі гЃЇйЂљиІ©гЃ§гЃ®иіј – г‚ўгѓўг‚­г‚·гѓ« гЃЉгЃ™гЃ™г‚Ѓ г‚ёг‚№гѓ­гѓћгѓѓг‚Ї гЃ©гЃ“гЃ§иІ·гЃ€г‚‹

  4. Grobend

    dapoxetina comprar online Three to six sections 10 Ојm thickness were removed from each tumor block and transferred to sterile 1

  5. Enkiqr

    г‚·гѓ«гѓ‡гѓЉгѓ•г‚Јгѓ« гЃЇйЂљиІ©гЃ§гЃ®иіј – バイアグラ и–¬е±ЂгЃ§иІ·гЃ€г‚‹ г‚їгѓЂгѓ©гѓ•г‚Јгѓ«гЃЇи–¬е±ЂгЃ§иІ·гЃ€г‚‹пјџ

  6. trustinvest.ca

    Have you ever considered about including a little bit more than just your articles? I mean, what you say is fundamental and all. But think of if you added some great images or video clips to give your posts more, “pop”! Your content is excellent but with images and video clips, this blog could definitely be one of the best in its field. Very good blog!

    https://www.thephinsider.com/users/Maple-Wells

  7. Nemlst

    eriacta slam – eriacta heal forzest dick

  8. Tptbrj

    indinavir over the counter – voltaren gel order online purchase cheap voltaren gel

  9. Yqmudm

    valif pills forget – buy sustiva 20mg for sale sinemet where to buy

  10. coinbase earn free crypto

    Woah! I’m really enjoying the template/theme of this website. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between usability and visual appearance. I must say that you’ve done a awesome job with this. Also, the blog loads very quick for me on Chrome. Excellent Blog!

    https://www.youtube.com/watch?v=KPqm6ljnr5k

  11. Ouhapa

    provigil 200mg us – provigil uk order combivir for sale

  12. Yfmzqx

    order promethazine 25mg online – lincomycin cheap lincomycin over the counter

  13. Efsvbx

    ivermectin 3mg for people – ivermectin 12 mg for humans carbamazepine 200mg without prescription

  14. Fjzhxc

    deltasone order online – starlix price captopril 25mg cheap

  15. Notzmz

    buy prednisone sale – order starlix sale capoten 25 mg brand

  16. Oxqwvm

    purchase accutane – generic accutane order linezolid 600mg without prescription

  17. Zviema

    amoxil cheap – ipratropium for sale online combivent 100 mcg pill

  18. Cljplr

    zithromax price – order bystolic 20mg generic brand bystolic 5mg

  19. Msipub

    buy omnacortil tablets – omnacortil 40mg us progesterone 100mg us

  20. Ivan Mcmiller

    I’ve learn several good stuff here. Certainly price bookmarking for revisiting. I wonder how so much effort you put to create this kind of wonderful informative web site.

    http://www.vorbelutrioperbir.com

  21. Hwsukt

    neurontin order – neurontin where to buy order itraconazole 100mg without prescription

  22. Uxbdar

    order furosemide without prescription – buy piracetam 800 mg without prescription purchase betnovate generic

  23. Tgtklf

    monodox over the counter – albuterol 4mg usa buy generic glucotrol

Add a review

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