This shows you the differences between two versions of the page.
pm:prj2021:alazar:smokedetector [2021/06/02 22:25] florina.drastaru |
pm:prj2021:alazar:smokedetector [2021/06/03 18:18] (current) florina.drastaru |
||
---|---|---|---|
Line 101: | Line 101: | ||
lcd.print("Smoke Level:"); | lcd.print("Smoke Level:"); | ||
lcd.print(analogSensor-50); | lcd.print(analogSensor-50); | ||
- | // Checks if it has reached the threshold value | ||
if (analogSensor-50 > maxLimit) | if (analogSensor-50 > maxLimit) | ||
{ | { |