Skip to content

Instantly share code, notes, and snippets.

View prashantpandeygit's full-sized avatar

Prashant Pandey prashantpandeygit

View GitHub Profile
@prashantpandeygit
prashantpandeygit / carbon footprint estimation.py
Last active January 14, 2026 23:24
Carbon Footprint Estimation using ESP32
from machine import Pin, ADC
import dht
import time
class LCD: #16x2
def __init__(self, rs, en, d4, d5, d6, d7):
self.rs = Pin(rs, Pin.OUT)
self.en = Pin(en, Pin.OUT)
self.data = [
Pin(d4, Pin.OUT),