Professional Documents
Culture Documents
void setup() {
// Set the buzzer and relay pins as output
pinMode(buzzerPin, OUTPUT);
pinMode(relayPin, OUTPUT);
void loop() {
// Read the digital value from the flame sensor
int flameValue = digitalRead(flameSensorPin);