Back to overview
Gas leakage is very dangerous, to prevent that from happening, this project was created
from machine import ADCfrom machine import Pinimport timeadc0=ADC(0) led=Pin(4,Pin.OUT)target=200while True: print("gas=",adc0.read()) time.sleep(1) if adc0.read() > target: led.value(1) else: led.value(0)
-MQ135
A0 = A0
GND = GND
VCC = 5V
-LED
+ = D2
- = GND
Create an account to leave a comment. Already have an account? Log In.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.