Today we obtained the new version of argiblocks with a lot more pieces to the puzzle.
Now for the project we conversed with our superior that a button should be added to tell when the smoker is smoking. Once the button is pushed, the LED would come on.
First we set the variables of the button and smoking to false so the LED would be off. Then we made 3 “if” statements as shown below in the image;
under the if statements is the serial print to give us the values of the smoke. Which isn’t needed right now and will be removed until the light sensor is placed within the loop.
Things to do tomorrow:
toggle the button on and off so that once the button is pressed for a second time the LED will not go off.