Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15454

Project not working

$
0
0

I am making a project of flame sensor this is the whole circuit

Circuit diagram is

And the code is as below

const int buzzerPin = 9;
const int fireSensorPin = 8;
void setup()
{
  Serial.begin(9600);
  pinMode(buzzerPin, OUTPUT);
  pinMode(fireSensorPin, INPUT);
}
void loop()
{
  int fireValue = digitalRead(fireSensorPin);
  Serial.println(fireValue);
  if(fireValue == 0)
  {
    digitalWrite(buzzerPin, HIGH);
    delay(5000);
  }
  else
  {
    digitalWrite(buzzerPin, LOW);
  }
  delay(500);
}

I have also installed ch340 drivers
But still it's not working
Source is https://youtu.be/KpKoWD5_hZU?si=bsxUfmnl3jkEZbHa

Please help on urgent basis

4 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 15454

Trending Articles