Gas Detection Alarm
We will build a gas detector below that will sound an alarm if it detects a gas leak. The alarm will sound until the gas leak is stopped. In addition, LEDs are triggered depending on the amount of gas that the sensor detects. If there is a lot of gas leaking, all four LEDs should light up; if there is little gas, only one of the four LEDs should light up
Link to this project in Tinkercad.
https://www.tinkercad.com/things/9QUPjCApJsL
Supplies
The supplies are in the file below.
Downloads
Connect all the wires as shown in the picture above.
Add code to the circuit.
The code is available to download.