{"id":26334354,"url":"https://github.com/beckversync/dht11-mq2","last_synced_at":"2026-04-18T14:04:56.488Z","repository":{"id":280781724,"uuid":"943151209","full_name":"Beckversync/DHT11-MQ2","owner":"Beckversync","description":" IoT project can provide valuable environmental data","archived":false,"fork":false,"pushed_at":"2025-03-28T12:41:16.000Z","size":960,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T13:39:34.588Z","etag":null,"topics":["iot","mqtt","thingsboard"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Beckversync.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-05T08:51:06.000Z","updated_at":"2025-03-28T08:26:10.000Z","dependencies_parsed_at":"2025-03-13T09:26:47.136Z","dependency_job_id":null,"html_url":"https://github.com/Beckversync/DHT11-MQ2","commit_stats":null,"previous_names":["beckversync/dht11-mq2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Beckversync/DHT11-MQ2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beckversync%2FDHT11-MQ2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beckversync%2FDHT11-MQ2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beckversync%2FDHT11-MQ2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beckversync%2FDHT11-MQ2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Beckversync","download_url":"https://codeload.github.com/Beckversync/DHT11-MQ2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beckversync%2FDHT11-MQ2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278403781,"owners_count":25981132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["iot","mqtt","thingsboard"],"created_at":"2025-03-16T00:18:26.894Z","updated_at":"2025-10-05T03:25:53.894Z","avatar_url":"https://github.com/Beckversync.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DHT11 \u0026 MQ2 Sensor Integration for IoT Projects \n\nThis repository provides comprehensive code and documentation for integrating DHT11 ( Temperature \u0026 Humidity Sensor) and MQ2 ( Gas Sensor) into IoT projects using microcontrollers like ESP32. The data collected from these sensors can be processed locally and transmitted to Edge, Fog, or Cloud systems using protocols like MQTT, HTTP, or CoAP.\n\n Features\n\n DHT11 Sensor: Measures temperature and humidity with easy-to-use digital output.\n\n MQ2 Sensor: Detects gases like LPG, smoke, methane, and propane.\n\n Data Transmission: Supports MQTT, HTTP, and CoAP for sending data to Edge/Fog/Cloud architecture.\n\n Preprocessing: Filter and transform sensor data before transmission.\n\n Hardware Requirements\n\n DHT11 Sensor Module\n\n MQ2 Gas Sensor Module\n\n ESP32\n\n Jumper wires and breadboard\n\n Setup \u0026 Usage\n\n Connect the DHT11 and MQ2 sensors to the microcontroller.\n\n Install necessary libraries for reading sensor data.\n\n Configure protocols for data transmission (MQTT, HTTP, CoAP).\n\n Run the script and monitor real-time sensor data.\n\n\n# Espressif 32: development platform for [PlatformIO](https://platformio.org)\n\n[![Build Status](https://github.com/platformio/platform-espressif32/workflows/Examples/badge.svg)](https://github.com/platformio/platform-espressif32/actions)\n\nESP32 is a series of low-cost, low-power system on a chip microcontrollers with integrated Wi-Fi and Bluetooth. ESP32 integrates an antenna switch, RF balun, power amplifier, low-noise receive amplifier, filters, and power management modules.\n\n* [Home](https://registry.platformio.org/platforms/platformio/espressif32) (home page in the PlatformIO Registry)\n* [Documentation](https://docs.platformio.org/page/platforms/espressif32.html) (advanced usage, packages, boards, frameworks, etc.)\n\n# Usage\n\n1. [Install PlatformIO](https://platformio.org)\n2. Create PlatformIO project and configure a platform option in [platformio.ini](https://docs.platformio.org/page/projectconf.html) file:\n\n## Stable version\n\nSee `platform` [documentation](https://docs.platformio.org/en/latest/projectconf/sections/env/options/platform/platform.html#projectconf-env-platform) for details.\n\n```ini\n; PlatformIO Project Configuration File\n;\n;   Build options: build flags, source filter\n;   Upload options: custom upload port, speed and extra flags\n;   Library options: dependencies, extra library storages\n;   Advanced options: extra scripting\n;\n; Please visit documentation for the other options and examples\n; https://docs.platformio.org/page/projectconf.html\n\n[env:esp32doit-devkit-v1]\nplatform = espressif32\nboard = esp32doit-devkit-v1\nframework = arduino\nmonitor_speed = 115200\n; build_flags = \n; \t-D ARDUINO_USB_MODE=1\n; \t-D ARDUINO_USB_CDC_ON_BOOT=1\nlib_deps = \n\tArduinoHttpClient\n\tArduinoJson\n\tDHT20\n\tPubSubClient\n\tThingsBoard\n\tadafruit/DHT sensor library@^1.4.6\n\tmiguel5612/MQUnifiedsensor@^3.0.0\n\n\n    \n# Configuration\n\nPlease navigate to [documentation](https://docs.platformio.org/page/platforms/espressif32.html).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeckversync%2Fdht11-mq2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeckversync%2Fdht11-mq2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeckversync%2Fdht11-mq2/lists"}