Gas Sensor and Arduino using Tinkercad

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2022
  • In this video, we will interface the Gas Sensor with Arduino in Tinkercad to detect the amount of Gas present in the environment.
    #gassensor #arduino #tinkercad

ความคิดเห็น • 6

  • @adithyasipkaduwa354
    @adithyasipkaduwa354 ปีที่แล้ว

    greate one

  • @user-qt1uu6rj2j
    @user-qt1uu6rj2j 3 หลายเดือนก่อน

    why we have connected the resistor to the ground. can you tell me the reason because i am having a exam tmrw

  • @nikshithanikshitha1391
    @nikshithanikshitha1391 9 หลายเดือนก่อน +1

    I'm not getting values in serial moniter

  • @shivommishra6345
    @shivommishra6345 4 หลายเดือนก่อน

    @Parag Achaliya plz send code link

  • @itzkiller2849
    @itzkiller2849 4 หลายเดือนก่อน

    Code?

  • @erickgoldberg8153
    @erickgoldberg8153 2 หลายเดือนก่อน +2

    int LED = 13;
    int MQ2pin = A0;
    void setup()
    {
    Serial.begin(9600);
    }
    void loop()
    {
    float sensorValue;
    sensorValue = analogRead(MQ2pin);

    if(sensorValue >= 250)
    {
    digitalWrite(LED, HIGH);
    Serial.print(sensorValue);
    Serial.print(" ");
    }
    else
    {
    digitalWrite(LED, LOW);
    Serial.print(" ");
    Serial.print(sensorValue);
    }

    delay(1000);
    }