https://github.com/dr2okevin/esp32-particulate-matter-sensor
Reads the fine dust values of an SDS011 and sends them via WiFi to an MQTT broker.
https://github.com/dr2okevin/esp32-particulate-matter-sensor
esp32 m4011 mqtt
Last synced: 2 months ago
JSON representation
Reads the fine dust values of an SDS011 and sends them via WiFi to an MQTT broker.
- Host: GitHub
- URL: https://github.com/dr2okevin/esp32-particulate-matter-sensor
- Owner: dr2okevin
- License: gpl-3.0
- Created: 2025-01-19T10:47:43.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-19T16:07:24.000Z (over 1 year ago)
- Last Synced: 2025-03-23T08:46:15.086Z (over 1 year ago)
- Topics: esp32, m4011, mqtt
- Language: C++
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ESP32 Particulate matter sensor
This little code reads out an SDS011 sensor, and publishes the Data via mqtt
SDS011 is widely available on any maker store, Aliexpress and Amazon.
I bought this one from amazon https://amzn.eu/d/2LMqJiG
set you wifi settings in line 17 and 18
and maybe you want to change the mqtt settings in line 26 to 29
the SDS011 pins are set on line 32 and 33
I used the Arduino IDE 1.8 for this.
Following Libaries where used
- Sds011 https://github.com/dok-net/esp_sds011/tree/1.1.0
- EspSoftwareSerial https://github.com/plerup/espsoftwareserial/tree/6.17.1
- WiFi https://github.com/arduino-libraries/WiFi/tree/1.2.7
- time
- PubSubClient https://github.com/knolleary/pubsubclient/tree/v2.8