Project not working

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

After reading the "How to get the best out of this forum" post, follow the instructions and clearly explain what you mean by "not working".

1 Like

Why not post an annotated schematic, I do not watch videos. Your wiring diagram does not give part details. Links to each of the components also helps. With that information explain what you expect it to do and what it is actually doing. Do you have a scope or multi meter available? What course is this for and when is it due?

Your photo shows no flame or Serial Monitor output.

No, it is not.

I mean say " not working" when a flame is brought near the sensor the buzzer is not beeping

When the flame is brought near the sensor the buzzer is not beeping

Does the sensor put out a LOW or a HIGH when flame is present?

Check the connections to your sensor board. All three pins are connected wrong. You have the sensor's data output connected to GND, the sensor's GND connected to +5V and the sensor's Vcc connected to one of the Arduino's pins.

Once that's fixed, proceed with the suggestions already given above.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.