Рет қаралды 1,983
In this video I show you exactly how you can measure the quality of the air using the SGP40 sensor coupled with the DHT11. We use the DHT11 sensor to obtain the humidity and temperature, since the quality of the air changes with the humidity and temperature. The SGP40 gives us the quality of the air in terms of the raw resistance. So we use a calculation (from the SGP40 creators) to calculate what is called Volatile Organic Compound (VOC) index, which is what is actually used to measure the quality of the air. I use the ESP32 as the micro-controller, but you can use any micro-controller with WiFi, for example, the ESP8266 will works just fine.
Not only do I show you how to setup everything, but also how to visualise all the sensor data including the VOC index in real time using charts in the web browser, save the data to the cloud (GitHub) so you can have the data as a record, or use the data later for analysis or anything else you want. I also perform tests that you can do, to ensure all the senors are working properly and giving reliable results.
Please consider subscribing! :)
Links mentioned in the video:
GitHub repo:
github.com/Pro...
SPIFFS for ESP32:
github.com/me-...
SPIFFS for ESP8266:
github.com/esp...
AsyncTCP:
github.com/me-...
ESPAsyncWebServer:
github.com/me-...
Great tutorial on how to install the libraries:
• How to Create a Web Se...