Testing an IR Sensor with REAL Fire! (Huge Mistake?)😲🧑🚒
Robotic with Thidas
0:00 / 0:00
Testing an IR Sensor with REAL Fire! (Huge Mistake?)😲🧑🚒
61 просмотр · 1 дн. назад
Robotic with Thidas
70 подписчиков
61 просмотр · 1 дн. назад
Can a simple and cheap $1 IR obstacle sensor actually detect fire? In this video, we test an ordinary IR sensor with real fire to build a quick and easy DIY Fire Alarm System using Arduino Uno! 🔥 Watch till the end to see how it works and how you can build one yourself at home.
🧩 Components Used in this Project:
Arduino Uno
IR Sensor Module
Buzzer
Jumper Wires
Breadboard / Power Source
💻 Arduino Code:
const int sensorPin = 2; // IR sensor module OUT pin to Arduino Pin 2
const int buzzerPin = 8; // Buzzer to Arduino Pin 8
void setup() {
pinMode(sensorPin, INPUT);
pinMode(buzzerPin, OUTPUT);
Serial.begin(9600);
}
void loop() {
int sensorValue = digitalRead(sensorPin);
if (sensorValue == LOW) {
digitalWrite(buzzerPin, HIGH);
Serial.println("Fire Detected!");
}
else {
digitalWrite(buzzerPin, LOW);
Serial.println("Normal");
}
delay(100);
}
👍 If you found this video helpful, make sure to Like, Share, and Subscribe to Robotic with Thidas for more awesome Arduino and robotics projects!
#Arduino #FireAlarm #IRsensor #DIYProject #Electronics #SriLanka #RoboticWithThidas