Fire Alarm

Hi. I have a question regarding the Ionization-type smoke alarm in our project.. The smoke alarm we bought is a programmable one; so we can control its sensitivity.. In our program, "fire alarm will trigger its buzzer once a voltage <= 125 is attained".. It works fine earlier, however, the buzzer activates only after the fire is completely gone.. Why is that? Thanks in advance :slight_smile:

In our program

. . . which we can't be bothered to show you

Oopss.. :slight_smile: Here it is

[code] if (sensorValue <=125 && sensorValue != 0 ) 	// determine alarm status 
  {
    digitalWrite(buzz, HIGH);   // sets the buzzer on
  }
  else
  {
    digitalWrite(buzz, LOW);    // sets the buzzer off
  }

[/code]

{Sigh}