Gas leakage is very dangerous, to prevent that from happening, this project was created
Not a member? You should Sign up.
Already have an account? Log in.
To make the experience fit your profile, pick a username and tell us what interests you.
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
View all instructions
Create an account to leave a comment. Already have an account? Log In.
Lkolod
P Plunkett
dc212
Tonton
Become a member to follow this project and never miss any updates
Yes, delete it Cancel
You are about to report the project "Gas Leakage Detection", please tell us the reason.
Your application has been submitted.
Are you sure you want to remove yourself as a member for this project?
Project owner will be notified upon removal.